From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kview/kviewcanvas/config/confmodules.cpp | 8 +++--- kview/kviewcanvas/config/confmodules.h | 3 ++- kview/kviewcanvas/config/defaults.h | 2 +- kview/kviewcanvas/config/generalconfigwidget.ui | 34 ++++++++++++------------- 4 files changed, 24 insertions(+), 23 deletions(-) (limited to 'kview/kviewcanvas/config') diff --git a/kview/kviewcanvas/config/confmodules.cpp b/kview/kviewcanvas/config/confmodules.cpp index 4ecf07b9..a90c1024 100644 --- a/kview/kviewcanvas/config/confmodules.cpp +++ b/kview/kviewcanvas/config/confmodules.cpp @@ -34,12 +34,12 @@ typedef KGenericFactory KViewCanvasConfigFactory; K_EXPORT_COMPONENT_FACTORY( kcm_kviewcanvasconfig, KViewCanvasConfigFactory( "kcm_kviewcanvasconfig" ) ) -KViewCanvasConfig::KViewCanvasConfig( TQWidget * parent, const char *, const TQStringList & args ) - : KCModule( KViewCanvasConfigFactory::instance(), parent, args ) +KViewCanvasConfig::KViewCanvasConfig( TQWidget * tqparent, const char *, const TQStringList & args ) + : KCModule( KViewCanvasConfigFactory::instance(), tqparent, args ) , m_config( new KConfig( "kviewcanvasrc" ) ) { - TQBoxLayout * layout = new TQVBoxLayout( this ); - layout->setAutoAdd( true ); + TQBoxLayout * tqlayout = new TQVBoxLayout( this ); + tqlayout->setAutoAdd( true ); m_pWidget = new GeneralConfigWidget( this ); m_pWidget->m_pMinWidth ->setRange( 1, 200 ); diff --git a/kview/kviewcanvas/config/confmodules.h b/kview/kviewcanvas/config/confmodules.h index e513a9cd..95fa00c6 100644 --- a/kview/kviewcanvas/config/confmodules.h +++ b/kview/kviewcanvas/config/confmodules.h @@ -29,8 +29,9 @@ class KConfig; class KViewCanvasConfig : public KCModule { Q_OBJECT + TQ_OBJECT public: - KViewCanvasConfig( TQWidget * parent, const char * name = 0, const TQStringList & args = TQStringList() ); + KViewCanvasConfig( TQWidget * tqparent, const char * name = 0, const TQStringList & args = TQStringList() ); ~KViewCanvasConfig(); void load(); diff --git a/kview/kviewcanvas/config/defaults.h b/kview/kviewcanvas/config/defaults.h index 02abbb19..166b3b02 100644 --- a/kview/kviewcanvas/config/defaults.h +++ b/kview/kviewcanvas/config/defaults.h @@ -27,7 +27,7 @@ namespace Defaults { static const bool smoothScaling = false; static const bool keepAspectRatio = true; static const bool centerImage = true; - static const TQColor bgColor( Qt::black ); + static const TQColor bgColor( TQt::black ); static const TQSize minSize( 1, 1 ); static const TQSize maxSize( 10000, 10000 ); static const unsigned int numOfBlendEffects = 4; diff --git a/kview/kviewcanvas/config/generalconfigwidget.ui b/kview/kviewcanvas/config/generalconfigwidget.ui index b4646381..da279892 100644 --- a/kview/kviewcanvas/config/generalconfigwidget.ui +++ b/kview/kviewcanvas/config/generalconfigwidget.ui @@ -1,7 +1,7 @@ GeneralConfigWidget Matthias Kretz <kretz@kde.org> - + GeneralConfigWidget @@ -20,7 +20,7 @@ 0 - + Layout4 @@ -110,7 +110,7 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a MinimumExpanding - + 0 0 @@ -127,7 +127,7 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a MinimumExpanding - + 0 0 @@ -136,15 +136,15 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a - + - layout3 + tqlayout3 unnamed - + TextLabel3 @@ -179,15 +179,15 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a - + - layout4 + tqlayout4 unnamed - + m_pSmoothScaling @@ -195,7 +195,7 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a Use smooth scaling (high quality but slower) - + m_pKeepRatio @@ -206,7 +206,7 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a If this is checked KView will always try to keep the aspect ratio. That means if the width is scaled with a factor x, the height is scaled with the same factor. - + m_pCenterImage @@ -216,7 +216,7 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a - + groupBox3 @@ -239,7 +239,7 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a 0 - + 32 32 @@ -259,7 +259,7 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a Expanding - + 151 21 @@ -283,8 +283,8 @@ A value of 100 would cause a 1000x1000 image to be compressed horizontally by a kdialog.h - - + + knuminput.h knuminput.h -- cgit v1.2.1