summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/configguignokii.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/configguignokii.cpp')
-rw-r--r--kitchensync/src/configguignokii.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kitchensync/src/configguignokii.cpp b/kitchensync/src/configguignokii.cpp
index 1379f5e5a..38f2fbf3a 100644
--- a/kitchensync/src/configguignokii.cpp
+++ b/kitchensync/src/configguignokii.cpp
@@ -27,20 +27,20 @@
#include <kdebug.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qdom.h>
-#include <qvbox.h>
-
-ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, QWidget *parent )
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqdom.h>
+#include <tqvbox.h>
+
+ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, TQWidget *parent )
: ConfigGui( member, parent )
{
- QGridLayout *layout = new QGridLayout( topLayout() );
+ TQGridLayout *layout = new TQGridLayout( topLayout() );
// Model
- QLabel *label = new QLabel( i18n("Model:"), this );
+ TQLabel *label = new TQLabel( i18n("Model:"), this );
layout->addWidget( label, 0, 0 );
mModel = new KComboBox( true, this );
@@ -62,18 +62,18 @@ ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, QWidget *parent )
mModel->insertItem( "symbian" );
mModel->insertItem( "sx1" );
- connect( mModel, SIGNAL (activated( int ) ),
- this, SLOT( slotModelChanged () ) );
+ connect( mModel, TQT_SIGNAL (activated( int ) ),
+ this, TQT_SLOT( slotModelChanged () ) );
// Connection
- label = new QLabel( i18n("Connection:"), this );
+ label = new TQLabel( i18n("Connection:"), this );
layout->addWidget( label, 1, 0 );
- mConnection = new QComboBox( this );
+ mConnection = new TQComboBox( this );
layout->addWidget( mConnection, 1, 1 );
- connect( mConnection, SIGNAL (activated( int ) ),
- this, SLOT( slotConnectionChanged ( int ) ) );
+ connect( mConnection, TQT_SIGNAL (activated( int ) ),
+ this, TQT_SLOT( slotConnectionChanged ( int ) ) );
// this is a list of all connection types accepted by the gnokii-sync plugin
mConnectionTypes.append( ConnectionType( "bluetooth", i18n( "Bluetooth" ) ) );
@@ -93,7 +93,7 @@ ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, QWidget *parent )
mConnection->insertItem( (*it).second );
}
- QVBox *connectionWidget = new QVBox( this );
+ TQVBox *connectionWidget = new TQVBox( this );
connectionWidget->setMargin( KDialog::marginHint() );
connectionWidget->setSpacing( 5 );
@@ -103,7 +103,7 @@ ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, QWidget *parent )
layout->addMultiCellWidget( connectionWidget, 2, 2, 0, 1 );
// Port
- mPortLabel = new QLabel( i18n("Port:"), this );
+ mPortLabel = new TQLabel( i18n("Port:"), this );
layout->addWidget( mPortLabel, 2, 0 );
mPortLabel->hide();
@@ -161,14 +161,14 @@ void ConfigGuiGnokii::slotModelChanged()
mBluetooth->setChannel("");
}
-void ConfigGuiGnokii::load( const QString &xml )
+void ConfigGuiGnokii::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() == "connection" ) {
for ( uint i = 0; i < mConnectionTypes.count(); i++ ) {
if ( mConnectionTypes[i].first == e.text()) {
@@ -188,9 +188,9 @@ void ConfigGuiGnokii::load( const QString &xml )
}
}
-QString ConfigGuiGnokii::save() const
+TQString ConfigGuiGnokii::save() const
{
- QString xml;
+ TQString xml;
xml = "<config>";
ConnectionTypeList::ConstIterator it;
@@ -204,7 +204,7 @@ QString ConfigGuiGnokii::save() const
if ( (*it).first == "bluetooth" )
xml += "<port>" + mBluetooth->address() + "</port>";
else if ( (*it).first == "dku2libusb" )
- xml += "<port>" + QString("FF:FF:FF:FF:FF:FF") + "</port>"; // Only place holder for libgnokii
+ xml += "<port>" + TQString("FF:FF:FF:FF:FF:FF") + "</port>"; // Only place holder for libgnokii
else
xml += "<port>" + mPort->currentText() + "</port>";