diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kview/kviewcanvas/config | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview/kviewcanvas/config')
-rw-r--r-- | kview/kviewcanvas/config/confmodules.cpp | 44 | ||||
-rw-r--r-- | kview/kviewcanvas/config/confmodules.h | 8 | ||||
-rw-r--r-- | kview/kviewcanvas/config/defaults.h | 10 |
3 files changed, 31 insertions, 31 deletions
diff --git a/kview/kviewcanvas/config/confmodules.cpp b/kview/kviewcanvas/config/confmodules.cpp index c5e47dac..4ecf07b9 100644 --- a/kview/kviewcanvas/config/confmodules.cpp +++ b/kview/kviewcanvas/config/confmodules.cpp @@ -20,9 +20,9 @@ #include "generalconfigwidget.h" #include "defaults.h" -#include <qlayout.h> -#include <qcheckbox.h> -#include <qframe.h> +#include <tqlayout.h> +#include <tqcheckbox.h> +#include <tqframe.h> #include <klocale.h> #include <ksimpleconfig.h> @@ -31,14 +31,14 @@ #include <knuminput.h> #include <kgenericfactory.h> -typedef KGenericFactory<KViewCanvasConfig, QWidget> KViewCanvasConfigFactory; +typedef KGenericFactory<KViewCanvasConfig, TQWidget> KViewCanvasConfigFactory; K_EXPORT_COMPONENT_FACTORY( kcm_kviewcanvasconfig, KViewCanvasConfigFactory( "kcm_kviewcanvasconfig" ) ) -KViewCanvasConfig::KViewCanvasConfig( QWidget * parent, const char *, const QStringList & args ) +KViewCanvasConfig::KViewCanvasConfig( TQWidget * parent, const char *, const TQStringList & args ) : KCModule( KViewCanvasConfigFactory::instance(), parent, args ) , m_config( new KConfig( "kviewcanvasrc" ) ) { - QBoxLayout * layout = new QVBoxLayout( this ); + TQBoxLayout * layout = new TQVBoxLayout( this ); layout->setAutoAdd( true ); m_pWidget = new GeneralConfigWidget( this ); @@ -52,21 +52,21 @@ KViewCanvasConfig::KViewCanvasConfig( QWidget * parent, const char *, const QStr for( unsigned int i = 1; i <= Defaults::numOfBlendEffects; ++i ) { - QCheckListItem * item = new QCheckListItem( m_pWidget->m_pListView, i18n( Defaults::blendEffectDescription[ i ] ), QCheckListItem::CheckBox ); + TQCheckListItem * item = new TQCheckListItem( m_pWidget->m_pListView, i18n( Defaults::blendEffectDescription[ i ] ), TQCheckListItem::CheckBox ); m_items.append( item ); } - connect( m_pWidget->m_pListView, SIGNAL( clicked( QListViewItem * ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_pListView, SIGNAL( spacePressed( QListViewItem * ) ), this, SLOT( configChanged() ) ); + connect( m_pWidget->m_pListView, TQT_SIGNAL( clicked( TQListViewItem * ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_pListView, TQT_SIGNAL( spacePressed( TQListViewItem * ) ), this, TQT_SLOT( configChanged() ) ); - connect( m_pWidget->m_pSmoothScaling, SIGNAL( toggled( bool ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_pKeepRatio, SIGNAL( toggled( bool ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_pCenterImage, SIGNAL( toggled( bool ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_bgColor, SIGNAL( changed( const QColor & ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_pMinWidth, SIGNAL( valueChanged( int ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_pMaxWidth, SIGNAL( valueChanged( int ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_pMinHeight, SIGNAL( valueChanged( int ) ), this, SLOT( configChanged() ) ); - connect( m_pWidget->m_pMaxHeight, SIGNAL( valueChanged( int ) ), this, SLOT( configChanged() ) ); + connect( m_pWidget->m_pSmoothScaling, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_pKeepRatio, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_pCenterImage, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_bgColor, TQT_SIGNAL( changed( const TQColor & ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_pMinWidth, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_pMaxWidth, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_pMinHeight, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_pWidget->m_pMaxHeight, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) ); load(); } @@ -90,9 +90,9 @@ void KViewCanvasConfig::save() cfgGroup.writeEntry( "Maximum Height", m_pWidget->m_pMaxHeight->value() ); KConfigGroup cfgGroup2( m_config, "Blend Effects" ); - QCheckListItem *item = m_items.first(); + TQCheckListItem *item = m_items.first(); for( int i = 1; item; item = m_items.next(), ++i ) - cfgGroup2.writeEntry( QString::number( i ), item->isOn() ); + cfgGroup2.writeEntry( TQString::number( i ), item->isOn() ); m_config->sync(); } @@ -111,9 +111,9 @@ void KViewCanvasConfig::load() m_pWidget->m_pMaxHeight->setValue( cfgGroup.readNumEntry( "Maximum Height", Defaults::maxSize.height() ) ); KConfigGroup cfgGroup2( m_config, "Blend Effects" ); - QCheckListItem * item = m_items.first(); + TQCheckListItem * item = m_items.first(); for( int i = 1; item; item = m_items.next(), ++i ) - item->setOn( cfgGroup2.readBoolEntry( QString::number( i ), false ) ); + item->setOn( cfgGroup2.readBoolEntry( TQString::number( i ), false ) ); } void KViewCanvasConfig::defaults() @@ -129,7 +129,7 @@ void KViewCanvasConfig::defaults() m_pWidget->m_pMaxWidth ->setValue( Defaults::maxSize.width() ); m_pWidget->m_pMaxHeight->setValue( Defaults::maxSize.height() ); - QCheckListItem * item = m_items.first(); + TQCheckListItem * item = m_items.first(); for( int i = 1; item; item = m_items.next(), ++i ) item->setOn( false ); emit changed( true ); diff --git a/kview/kviewcanvas/config/confmodules.h b/kview/kviewcanvas/config/confmodules.h index f7dfe262..e513a9cd 100644 --- a/kview/kviewcanvas/config/confmodules.h +++ b/kview/kviewcanvas/config/confmodules.h @@ -20,17 +20,17 @@ #define CONFMODULES_H #include <kcmodule.h> -#include <qptrlist.h> +#include <tqptrlist.h> class GeneralConfigWidget; -class QCheckListItem; +class TQCheckListItem; class KConfig; class KViewCanvasConfig : public KCModule { Q_OBJECT public: - KViewCanvasConfig( QWidget * parent, const char * name = 0, const QStringList & args = QStringList() ); + KViewCanvasConfig( TQWidget * parent, const char * name = 0, const TQStringList & args = TQStringList() ); ~KViewCanvasConfig(); void load(); @@ -43,7 +43,7 @@ class KViewCanvasConfig : public KCModule private: KConfig * m_config; GeneralConfigWidget * m_pWidget; - QPtrList<QCheckListItem> m_items; + TQPtrList<TQCheckListItem> m_items; }; // vim:sw=4:ts=4 diff --git a/kview/kviewcanvas/config/defaults.h b/kview/kviewcanvas/config/defaults.h index 0a92d651..02abbb19 100644 --- a/kview/kviewcanvas/config/defaults.h +++ b/kview/kviewcanvas/config/defaults.h @@ -20,16 +20,16 @@ #define DEFAULTS_H #include <klocale.h> -#include <qsize.h> -#include <qcolor.h> +#include <tqsize.h> +#include <tqcolor.h> namespace Defaults { static const bool smoothScaling = false; static const bool keepAspectRatio = true; static const bool centerImage = true; - static const QColor bgColor( Qt::black ); - static const QSize minSize( 1, 1 ); - static const QSize maxSize( 10000, 10000 ); + static const TQColor bgColor( Qt::black ); + static const TQSize minSize( 1, 1 ); + static const TQSize maxSize( 10000, 10000 ); static const unsigned int numOfBlendEffects = 4; static const char * blendEffectDescription[ 6 ] = { I18N_NOOP( "No Blending" ), |