summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/configguigcalendar.cpp
diff options
context:
space:
mode:
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()));