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/configguigcalendar.cpp | 54 +++++++++++++++++----------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'kitchensync/src/configguigcalendar.cpp') diff --git a/kitchensync/src/configguigcalendar.cpp b/kitchensync/src/configguigcalendar.cpp index 0434de789..8e8006764 100644 --- a/kitchensync/src/configguigcalendar.cpp +++ b/kitchensync/src/configguigcalendar.cpp @@ -24,52 +24,52 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include -ConfigGuiGoogleCalendar::ConfigGuiGoogleCalendar( const QSync::Member &member, QWidget *parent ) +ConfigGuiGoogleCalendar::ConfigGuiGoogleCalendar( const QSync::Member &member, TQWidget *parent ) : ConfigGui( member, parent ) { - QBoxLayout *userLayout = new QHBoxLayout( topLayout() ); + TQBoxLayout *userLayout = new TQHBoxLayout( topLayout() ); - QLabel *userLbl= new QLabel( i18n("Username:"), this ); + TQLabel *userLbl= new TQLabel( i18n("Username:"), this ); userLayout->addWidget(userLbl); - mUsername = new QLineEdit(this); + mUsername = new TQLineEdit(this); userLayout->addWidget(mUsername); - QBoxLayout *passLayout = new QHBoxLayout( topLayout() ); + TQBoxLayout *passLayout = new TQHBoxLayout( topLayout() ); - QLabel *passLbl = new QLabel( i18n("Password:"), this ); + TQLabel *passLbl = new TQLabel( i18n("Password:"), this ); passLayout->addWidget(passLbl); - mPassword = new QLineEdit(this); - mPassword->setEchoMode(QLineEdit::Password); + mPassword = new TQLineEdit(this); + mPassword->setEchoMode(TQLineEdit::Password); passLayout->addWidget(mPassword); - topLayout()->addWidget(new QLabel( i18n("Please notice that currently the password is stored as plain text in the plugin configuration file"), this )); + topLayout()->addWidget(new TQLabel( i18n("Please notice that currently the password is stored as plain text in the plugin configuration file"), this )); - QBoxLayout *urlLayout = new QHBoxLayout( topLayout() ); - QLabel *urlLbl = new QLabel( i18n("Calendar URL:"), this ); + TQBoxLayout *urlLayout = new TQHBoxLayout( topLayout() ); + TQLabel *urlLbl = new TQLabel( i18n("Calendar URL:"), this ); urlLayout->addWidget(urlLbl); - mUrl = new QLineEdit(this); + mUrl = new TQLineEdit(this); urlLayout->addWidget(mUrl); topLayout()->addStretch( 1 ); } -void ConfigGuiGoogleCalendar::load( const QString &xml ) +void ConfigGuiGoogleCalendar::load( const TQString &xml ) { - QDomDocument doc; + TQDomDocument doc; doc.setContent( xml ); - QDomElement docElement = doc.documentElement(); - QDomNode n; + TQDomElement docElement = doc.documentElement(); + TQDomNode n; for( n = docElement.firstChild(); !n.isNull(); n = n.nextSibling() ) { - QDomElement e = n.toElement(); + TQDomElement e = n.toElement(); if ( e.tagName() == "username" ) { mUsername->setText(e.text()); } else if ( e.tagName() == "password" ) { @@ -80,21 +80,21 @@ void ConfigGuiGoogleCalendar::load( const QString &xml ) } } -QString ConfigGuiGoogleCalendar::save() const +TQString ConfigGuiGoogleCalendar::save() const { - QDomDocument doc; - QDomElement root = doc.createElement("config"); + TQDomDocument doc; + TQDomElement root = doc.createElement("config"); doc.appendChild(root); - QDomElement un = doc.createElement("username"); + TQDomElement un = doc.createElement("username"); root.appendChild(un); un.appendChild(doc.createTextNode(mUsername->text())); - QDomElement pass = doc.createElement("password"); + TQDomElement pass = doc.createElement("password"); root.appendChild(pass); pass.appendChild(doc.createTextNode(mPassword->text())); - QDomElement url = doc.createElement("url"); + TQDomElement url = doc.createElement("url"); root.appendChild(url); url.appendChild(doc.createTextNode(mUrl->text())); -- cgit v1.2.1