summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/configguiirmc.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/configguiirmc.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/configguiirmc.cpp')
-rw-r--r--kitchensync/src/configguiirmc.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kitchensync/src/configguiirmc.cpp b/kitchensync/src/configguiirmc.cpp
index 54d837b68..721c82d70 100644
--- a/kitchensync/src/configguiirmc.cpp
+++ b/kitchensync/src/configguiirmc.cpp
@@ -30,19 +30,19 @@
#include <kdebug.h>
-#include <qapplication.h>
-#include <qeventloop.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qtabwidget.h>
-#include <qtooltip.h>
-#include <qvbox.h>
+#include <tqapplication.h>
+#include <tqeventloop.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqtabwidget.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
#include "configguiirmc.h"
-ConfigGuiIRMC::ConfigGuiIRMC( const QSync::Member &member, QWidget *parent )
+ConfigGuiIRMC::ConfigGuiIRMC( const QSync::Member &member, TQWidget *parent )
: ConfigGui( member, parent )
{
initGUI();
@@ -51,20 +51,20 @@ ConfigGuiIRMC::ConfigGuiIRMC( const QSync::Member &member, QWidget *parent )
mConnectionType->insertItem( i18n( "InfraRed (IR)" ) );
mConnectionType->insertItem( i18n( "Cable" ) );
- connect( mConnectionType, SIGNAL( activated( int ) ),
- this, SLOT( connectionTypeChanged( int ) ) );
+ connect( mConnectionType, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( connectionTypeChanged( int ) ) );
connectionTypeChanged( 0 );
}
-void ConfigGuiIRMC::load( const QString &xml )
+void ConfigGuiIRMC::load( const TQString &xml )
{
- QDomDocument doc;
+ TQDomDocument doc;
doc.setContent( xml );
- QDomElement docElement = doc.documentElement();
- QDomNode node;
+ TQDomElement docElement = doc.documentElement();
+ TQDomNode node;
for ( node = docElement.firstChild(); !node.isNull(); node = node.nextSibling() ) {
- QDomElement element = node.toElement();
+ TQDomElement element = node.toElement();
if ( element.tagName() == "connectmedium" ) {
if ( element.text() == "bluetooth" ) {
mConnectionType->setCurrentItem( 0 );
@@ -91,13 +91,13 @@ void ConfigGuiIRMC::load( const QString &xml )
mCableWidget->load( docElement );
}
-QString ConfigGuiIRMC::save() const
+TQString ConfigGuiIRMC::save() const
{
- QDomDocument doc;
- QDomElement config = doc.createElement( "config" );
+ TQDomDocument doc;
+ TQDomElement config = doc.createElement( "config" );
doc.appendChild( config );
- QDomElement element = doc.createElement( "connectmedium" );
+ TQDomElement element = doc.createElement( "connectmedium" );
if ( mConnectionType->currentItem() == 0 )
element.appendChild( doc.createTextNode( "bluetooth" ) );
if ( mConnectionType->currentItem() == 1 )
@@ -108,11 +108,11 @@ QString ConfigGuiIRMC::save() const
config.appendChild( element );
if ( mConnectionType->currentItem() == 0 ) {
- QDomElement btunit = doc.createElement( "btunit" );
+ TQDomElement btunit = doc.createElement( "btunit" );
if ( !mBluetoothWidget->address().isEmpty() )
btunit.appendChild( doc.createTextNode( mBluetoothWidget->address() ) );
- QDomElement btchannel = doc.createElement( "btchannel" );
+ TQDomElement btchannel = doc.createElement( "btchannel" );
if ( !mBluetoothWidget->channel().isEmpty() )
btchannel.appendChild( doc.createTextNode( mBluetoothWidget->channel() ) );
@@ -121,7 +121,7 @@ QString ConfigGuiIRMC::save() const
}
if ( mDontTellSync->isChecked() ) {
- QDomElement dontellsync = doc.createElement( "donttellsync" );
+ TQDomElement dontellsync = doc.createElement( "donttellsync" );
dontellsync.appendChild( doc.createTextNode( "true" ) );
config.appendChild( dontellsync );
}
@@ -148,17 +148,17 @@ void ConfigGuiIRMC::connectionTypeChanged( int type )
void ConfigGuiIRMC::initGUI()
{
- QTabWidget *tabWidget = new QTabWidget( this );
+ TQTabWidget *tabWidget = new TQTabWidget( this );
topLayout()->addWidget( tabWidget );
- QVBox *connectionWidget = new QVBox( tabWidget );
+ TQVBox *connectionWidget = new TQVBox( tabWidget );
connectionWidget->setMargin( KDialog::marginHint() );
connectionWidget->setSpacing( 5 );
tabWidget->addTab( connectionWidget, i18n( "Connection" ) );
mConnectionType = new KComboBox( connectionWidget );
- QToolTip::add( mConnectionType, i18n( "Select your connection type." ) );
+ TQToolTip::add( mConnectionType, i18n( "Select your connection type." ) );
mBluetoothWidget = new BluetoothWidget( connectionWidget );
mBluetoothWidget->hide();
@@ -173,18 +173,18 @@ void ConfigGuiIRMC::initGUI()
connectionWidget->setStretchFactor( mIRWidget, 1 );
connectionWidget->setStretchFactor( mCableWidget, 1 );
- QVBox *optionsWidget = new QVBox( tabWidget );
+ TQVBox *optionsWidget = new TQVBox( tabWidget );
optionsWidget->setMargin( KDialog::marginHint() );
optionsWidget->setSpacing( 5 );
tabWidget->addTab( optionsWidget, i18n( "Options" ) );
- QHBox *optionBox = new QHBox( optionsWidget );
+ TQHBox *optionBox = new TQHBox( optionsWidget );
optionBox->setSpacing( KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Don't send OBEX UUID (IRMC-SYNC)" ), optionBox );
- mDontTellSync = new QCheckBox( optionBox );
- QToolTip::add( mDontTellSync, i18n( "Don't send OBEX UUID while connecting. Needed for older IrMC based mobile phones." ) );
+ TQLabel *label = new TQLabel( i18n( "Don't send OBEX UUID (IRMC-SYNC)" ), optionBox );
+ mDontTellSync = new TQCheckBox( optionBox );
+ TQToolTip::add( mDontTellSync, i18n( "Don't send OBEX UUID while connecting. Needed for older IrMC based mobile phones." ) );
label->setBuddy( mDontTellSync );
}