summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/configguigcalendar.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/configguigcalendar.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/configguigcalendar.cpp')
-rw-r--r--kitchensync/src/configguigcalendar.cpp54
1 files changed, 27 insertions, 27 deletions
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 <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qdom.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqdom.h>
+#include <tqlineedit.h>
-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()));