From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kitchensync/src/configguievo2.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kitchensync/src/configguievo2.cpp') 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 -#include -#include -#include +#include +#include +#include +#include #include #include @@ -32,20 +32,20 @@ #include #include -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 = "\n"; + TQString config = "\n"; - config += QString( "%1\n" ).arg( mAddressPath->url() ); - config += QString( "%1\n" ).arg( mCalendarPath->url() ); - config += QString( "%1\n" ).arg( mTasksPath->url() ); + config += TQString( "%1\n" ).arg( mAddressPath->url() ); + config += TQString( "%1\n" ).arg( mCalendarPath->url() ); + config += TQString( "%1\n" ).arg( mTasksPath->url() ); 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 ); -- cgit v1.2.1