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/configguimoto.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/configguimoto.cpp')
-rw-r--r-- | kitchensync/src/configguimoto.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kitchensync/src/configguimoto.cpp b/kitchensync/src/configguimoto.cpp index 80c493dca..a310692f0 100644 --- a/kitchensync/src/configguimoto.cpp +++ b/kitchensync/src/configguimoto.cpp @@ -21,39 +21,39 @@ #include "configguimoto.h" -#include <qdom.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqdom.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <klineedit.h> #include <kdialog.h> #include <klocale.h> -ConfigGuiMoto::ConfigGuiMoto( const QSync::Member &member, QWidget *parent ) +ConfigGuiMoto::ConfigGuiMoto( const QSync::Member &member, TQWidget *parent ) : ConfigGui( member, parent ) { initGUI(); } -void ConfigGuiMoto::load( const QString &xml ) +void ConfigGuiMoto::load( const TQString &xml ) { - QDomDocument doc; + TQDomDocument doc; doc.setContent( xml ); - QDomElement docElement = doc.documentElement(); - QDomNode node; + TQDomElement docElement = doc.documentElement(); + TQDomNode node; for( node = docElement.firstChild(); !node.isNull(); node = node.nextSibling() ) { - QDomElement element = node.toElement(); + TQDomElement element = node.toElement(); if ( element.tagName() == "device" ) { mDeviceString->setText( element.text() ); } } } -QString ConfigGuiMoto::save() const +TQString ConfigGuiMoto::save() const { - QString config = "<config>\n"; + TQString config = "<config>\n"; - config += QString( "<device>%1</device>\n" ).arg( mDeviceString->text() ); + config += TQString( "<device>%1</device>\n" ).arg( mDeviceString->text() ); config += "</config>"; @@ -62,10 +62,10 @@ QString ConfigGuiMoto::save() const void ConfigGuiMoto::initGUI() { - QGridLayout *layout = new QGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); layout->setMargin( KDialog::marginHint() ); - layout->addWidget( new QLabel( i18n( "Device String:" ), this ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "Device String:" ), this ), 0, 0 ); mDeviceString = new KLineEdit( this ); layout->addMultiCellWidget( mDeviceString, 0, 0, 1, 2 ); } |