summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/configguiopie.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/configguiopie.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/configguiopie.cpp')
-rw-r--r--kitchensync/src/configguiopie.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kitchensync/src/configguiopie.cpp b/kitchensync/src/configguiopie.cpp
index 6d0a5d80c..e823ffe3e 100644
--- a/kitchensync/src/configguiopie.cpp
+++ b/kitchensync/src/configguiopie.cpp
@@ -23,59 +23,59 @@
#include <klocale.h>
-#include <qcombobox.h>
-#include <qdom.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-
-ConfigGuiOpie::ConfigGuiOpie( const QSync::Member &member, QWidget *parent )
+#include <tqcombobox.h>
+#include <tqdom.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+
+ConfigGuiOpie::ConfigGuiOpie( const QSync::Member &member, TQWidget *parent )
: ConfigGui( member, parent )
{
- QGridLayout *layout = new QGridLayout( topLayout() );
+ TQGridLayout *layout = new TQGridLayout( topLayout() );
- QLabel *label = new QLabel( i18n("Device IP:"), this );
+ TQLabel *label = new TQLabel( i18n("Device IP:"), this );
layout->addWidget( label, 0, 0 );
- mDeviceIP = new QLineEdit( this );
+ mDeviceIP = new TQLineEdit( this );
mDeviceIP->setInputMask( "000.000.000.000" );
label->setBuddy( mDeviceIP );
layout->addWidget( mDeviceIP, 0, 1 );
- label = new QLabel( i18n("Device Type:"), this );
+ label = new TQLabel( i18n("Device Type:"), this );
layout->addWidget( label, 1, 0 );
- mDeviceType = new QComboBox( this );
+ mDeviceType = new TQComboBox( this );
label->setBuddy( mDeviceType );
layout->addWidget( mDeviceType, 1, 1 );
- label = new QLabel( i18n("Username:"), this );
+ label = new TQLabel( i18n("Username:"), this );
layout->addWidget( label, 2, 0 );
- mUserName = new QLineEdit( this );
+ mUserName = new TQLineEdit( this );
label->setBuddy( mUserName );
layout->addWidget( mUserName, 2, 1 );
- label = new QLabel( i18n("Password:"), this );
+ label = new TQLabel( i18n("Password:"), this );
layout->addWidget( label, 3, 0 );
- mPassword = new QLineEdit( this );
- mPassword->setEchoMode( QLineEdit::Password );
+ mPassword = new TQLineEdit( this );
+ mPassword->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPassword );
layout->addWidget( mPassword, 3, 1 );
- label = new QLabel( i18n("Protocol:"), this );
+ label = new TQLabel( i18n("Protocol:"), this );
layout->addWidget( label, 4, 0 );
- mConnectionType = new QComboBox( this );
+ mConnectionType = new TQComboBox( this );
label->setBuddy( mConnectionType );
layout->addWidget( mConnectionType, 4, 1 );
- label = new QLabel( i18n("Port:"), this );
+ label = new TQLabel( i18n("Port:"), this );
layout->addWidget( label, 5, 0 );
- mPort = new QSpinBox( this );
+ mPort = new TQSpinBox( this );
mPort->setRange( 0, 65335 );
label->setBuddy( mPort );
layout->addWidget( mPort, 5, 1 );
@@ -89,14 +89,14 @@ ConfigGuiOpie::ConfigGuiOpie( const QSync::Member &member, QWidget *parent )
topLayout()->addStretch( 1 );
}
-void ConfigGuiOpie::load( const QString &xml )
+void ConfigGuiOpie::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" ) {
@@ -119,16 +119,16 @@ void ConfigGuiOpie::load( const QString &xml )
}
}
-QString ConfigGuiOpie::save() const
+TQString ConfigGuiOpie::save() const
{
- QString xml;
+ TQString xml;
xml = "<config>";
xml += "<username>" + mUserName->text() + "</username>";
xml += "<password>" + mPassword->text() + "</password>";
xml += "<url>" + mDeviceIP->text() + "</url>";
- xml += "<device>" + QString( mDeviceType->currentItem() == 0 ? "opie" : "qtopia2" ) + "</device>";
- xml += "<port>" + QString::number( mPort->value() ) + "</port>";
- xml += "<conntype>" + QString( mConnectionType->currentItem() == 0 ? "scp" : "ftp" ) + "</conntype>";
+ xml += "<device>" + TQString( mDeviceType->currentItem() == 0 ? "opie" : "qtopia2" ) + "</device>";
+ xml += "<port>" + TQString::number( mPort->value() ) + "</port>";
+ xml += "<conntype>" + TQString( mConnectionType->currentItem() == 0 ? "scp" : "ftp" ) + "</conntype>";
xml += "</config>";
return xml;