summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/configguievo2.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kitchensync/src/configguievo2.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/configguievo2.cpp')
-rw-r--r--kitchensync/src/configguievo2.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kitchensync/src/configguievo2.cpp b/kitchensync/src/configguievo2.cpp
index a8856c1e8..c313ce3ab 100644
--- a/kitchensync/src/configguievo2.cpp
+++ b/kitchensync/src/configguievo2.cpp
@@ -21,10 +21,10 @@
#include "configguievo2.h"
-#include <qdom.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qstring.h>
+#include <tqdom.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqstring.h>
#include <kurlrequester.h>
#include <kurl.h>
@@ -32,20 +32,20 @@
#include <kdialog.h>
#include <klocale.h>
-ConfigGuiEvo2::ConfigGuiEvo2( const QSync::Member &member, QWidget *parent )
+ConfigGuiEvo2::ConfigGuiEvo2( const QSync::Member &member, TQWidget *parent )
: ConfigGui( member, parent )
{
initGUI();
}
-void ConfigGuiEvo2::load( const QString &xml )
+void ConfigGuiEvo2::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() == "address_path" ) {
mAddressPath->setURL( element.text() );
} else if ( element.tagName() == "calendar_path" ) {
@@ -56,13 +56,13 @@ void ConfigGuiEvo2::load( const QString &xml )
}
}
-QString ConfigGuiEvo2::save() const
+TQString ConfigGuiEvo2::save() const
{
- QString config = "<config>\n";
+ TQString config = "<config>\n";
- config += QString( "<address_path>%1</address_path>\n" ).arg( mAddressPath->url() );
- config += QString( "<calendar_path>%1</calendar_path>\n" ).arg( mCalendarPath->url() );
- config += QString( "<tasks_path>%1</tasks_path>\n" ).arg( mTasksPath->url() );
+ config += TQString( "<address_path>%1</address_path>\n" ).arg( mAddressPath->url() );
+ config += TQString( "<calendar_path>%1</calendar_path>\n" ).arg( mCalendarPath->url() );
+ config += TQString( "<tasks_path>%1</tasks_path>\n" ).arg( mTasksPath->url() );
config += "</config>";
@@ -71,20 +71,20 @@ QString ConfigGuiEvo2::save() const
void ConfigGuiEvo2::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( "Address Book location:" ), this ), 0, 0 );
+ layout->addWidget( new TQLabel( i18n( "Address Book location:" ), this ), 0, 0 );
mAddressPath = new KURLRequester( this );
mAddressPath->setMode( KFile::Directory );
layout->addMultiCellWidget( mAddressPath, 0, 0, 1, 2 );
- layout->addWidget( new QLabel( i18n( "Calendar location:" ), this ), 1, 0 );
+ layout->addWidget( new TQLabel( i18n( "Calendar location:" ), this ), 1, 0 );
mCalendarPath = new KURLRequester( this );
mCalendarPath->setMode( KFile::Directory );
layout->addMultiCellWidget( mCalendarPath, 1, 1, 1, 2 );
- layout->addWidget( new QLabel( i18n( "Task list location:" ), this ), 2, 0 );
+ layout->addWidget( new TQLabel( i18n( "Task list location:" ), this ), 2, 0 );
mTasksPath = new KURLRequester( this );
mTasksPath->setMode( KFile::Directory );
layout->addMultiCellWidget( mTasksPath, 2, 2, 1, 2 );