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/configguisynce.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/configguisynce.cpp')
-rw-r--r-- | kitchensync/src/configguisynce.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kitchensync/src/configguisynce.cpp b/kitchensync/src/configguisynce.cpp index 43b509a46..6e521beeb 100644 --- a/kitchensync/src/configguisynce.cpp +++ b/kitchensync/src/configguisynce.cpp @@ -21,29 +21,29 @@ #include "configguisynce.h" -#include <qdom.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qcheckbox.h> +#include <tqdom.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqcheckbox.h> #include <klineedit.h> #include <kdialog.h> #include <klocale.h> -ConfigGuiSynce::ConfigGuiSynce( const QSync::Member &member, QWidget *parent ) +ConfigGuiSynce::ConfigGuiSynce( const QSync::Member &member, TQWidget *parent ) : ConfigGui( member, parent ) { initGUI(); } -void ConfigGuiSynce::load( const QString &xml ) +void ConfigGuiSynce::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() == "contact" ) { mContacts->setChecked( element.text().toInt() == 1 ); } else if ( element.tagName() == "todos" ) { @@ -56,14 +56,14 @@ void ConfigGuiSynce::load( const QString &xml ) } } -QString ConfigGuiSynce::save() const +TQString ConfigGuiSynce::save() const { - QString config = "<config>\n"; + TQString config = "<config>\n"; - config += QString( "<contact>%1</contact>\n" ).arg( mContacts->isChecked() ? "1" : "0" ); - config += QString( "<todos>%1</todos>\n" ).arg( mTodos->isChecked() ? "1" : "0" ); - config += QString( "<calendar>%1</calendar>\n" ).arg( mCalendar->isChecked() ? "1" : "0" ); - config += QString( "<file>%1</file>\n" ).arg( mFile->text() ); + config += TQString( "<contact>%1</contact>\n" ).arg( mContacts->isChecked() ? "1" : "0" ); + config += TQString( "<todos>%1</todos>\n" ).arg( mTodos->isChecked() ? "1" : "0" ); + config += TQString( "<calendar>%1</calendar>\n" ).arg( mCalendar->isChecked() ? "1" : "0" ); + config += TQString( "<file>%1</file>\n" ).arg( mFile->text() ); config += "</config>"; @@ -72,22 +72,22 @@ QString ConfigGuiSynce::save() const void ConfigGuiSynce::initGUI() { - QGridLayout *layout = new QGridLayout( topLayout(), 12, 2, KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 2, KDialog::spacingHint() ); layout->setMargin( KDialog::marginHint() ); - mContacts = new QCheckBox( this ); + mContacts = new TQCheckBox( this ); mContacts->setText( "Sync Contacts" ); layout->addMultiCellWidget( mContacts, 0, 0, 0, 1 ); - mTodos = new QCheckBox( this ); + mTodos = new TQCheckBox( this ); mTodos->setText( "Sync \'Todo\' items" ); layout->addMultiCellWidget( mTodos, 1, 1, 0, 1 ); - mCalendar = new QCheckBox( this ); + mCalendar = new TQCheckBox( this ); mCalendar->setText( "Sync Calendar" ); layout->addMultiCellWidget( mCalendar, 2, 2, 0, 1 ); - layout->addWidget( new QLabel( i18n( "File:" ), this ), 3, 0 ); + layout->addWidget( new TQLabel( i18n( "File:" ), this ), 3, 0 ); mFile = new KLineEdit( this ); layout->addWidget( mFile, 3, 1 ); } |