summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/configguisynce.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/configguisynce.cpp')
-rw-r--r--kitchensync/src/configguisynce.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kitchensync/src/configguisynce.cpp b/kitchensync/src/configguisynce.cpp
index 43b509a4..6e521bee 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 );
}