diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kitchensync/src/configgui.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kitchensync/src/configgui.cpp')
-rw-r--r-- | kitchensync/src/configgui.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kitchensync/src/configgui.cpp b/kitchensync/src/configgui.cpp index c57b4d991..6e2aa5d70 100644 --- a/kitchensync/src/configgui.cpp +++ b/kitchensync/src/configgui.cpp @@ -45,40 +45,40 @@ #include <klocale.h> #include <klineedit.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qtextedit.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqtextedit.h> -ConfigGui::ConfigGui( const QSync::Member &member, QWidget *parent ) - : QWidget( parent ), mMember( member ) +ConfigGui::ConfigGui( const QSync::Member &member, TQWidget *parent ) + : TQWidget( parent ), mMember( member ) { - mTopLayout = new QVBoxLayout( this ); + mTopLayout = new TQVBoxLayout( this ); mTopLayout->setSpacing( KDialog::spacingHint() ); mTopLayout->setMargin( KDialog::marginHint() ); - QBoxLayout *nameLayout = new QHBoxLayout( mTopLayout ); + TQBoxLayout *nameLayout = new TQHBoxLayout( mTopLayout ); - QLabel *label = new QLabel( i18n("Name:"), this ); + TQLabel *label = new TQLabel( i18n("Name:"), this ); nameLayout->addWidget( label ); mNameEdit = new KLineEdit( this ); nameLayout->addWidget( mNameEdit ); } -void ConfigGui::setInstanceName( const QString &t ) +void ConfigGui::setInstanceName( const TQString &t ) { mNameEdit->setText( t ); } -QString ConfigGui::instanceName() const +TQString ConfigGui::instanceName() const { return mNameEdit->text(); } ConfigGui *ConfigGui::Factory::create( const QSync::Member &member, - QWidget *parent ) + TQWidget *parent ) { - QString name = member.pluginName(); + TQString name = member.pluginName(); if ( name == "file-sync" ) { return new ConfigGuiFile( member, parent ); } else if ( name == "palm-sync" ) { @@ -117,19 +117,19 @@ ConfigGui *ConfigGui::Factory::create( const QSync::Member &member, } -ConfigGuiXml::ConfigGuiXml( const QSync::Member &member, QWidget *parent ) +ConfigGuiXml::ConfigGuiXml( const QSync::Member &member, TQWidget *parent ) : ConfigGui( member, parent ) { - mTextEdit = new QTextEdit( this ); + mTextEdit = new TQTextEdit( this ); topLayout()->addWidget( mTextEdit ); } -void ConfigGuiXml::load( const QString &xml ) +void ConfigGuiXml::load( const TQString &xml ) { mTextEdit->setText( xml ); } -QString ConfigGuiXml::save() const +TQString ConfigGuiXml::save() const { return mTextEdit->text(); } |