summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/connectionwidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/connectionwidgets.cpp')
-rw-r--r--kitchensync/src/connectionwidgets.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/kitchensync/src/connectionwidgets.cpp b/kitchensync/src/connectionwidgets.cpp
index 76d2297b7..ac5277fb7 100644
--- a/kitchensync/src/connectionwidgets.cpp
+++ b/kitchensync/src/connectionwidgets.cpp
@@ -28,35 +28,35 @@
#include <klocale.h>
#include <kmessagebox.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 "connectionwidgets.h"
-BluetoothWidget::BluetoothWidget( QWidget *parent )
- : QWidget( parent )
+BluetoothWidget::BluetoothWidget( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this );
+ TQGridLayout *layout = new TQGridLayout( this );
mAddress = new KLineEdit( this );
mAddress->setInputMask( ">NN:NN:NN:NN:NN:NN;" );
layout->addWidget( mAddress, 1, 0 );
- QLabel *label = new QLabel( i18n( "Bluetooth address:" ), this );
+ TQLabel *label = new TQLabel( i18n( "Bluetooth address:" ), this );
label->setBuddy( mAddress );
layout->addWidget( label, 0, 0 );
mChannel = new KLineEdit( this );
layout->addWidget( mChannel, 1, 1 );
- mChannelLabel = new QLabel( i18n( "Channel:" ), this );
+ mChannelLabel = new TQLabel( i18n( "Channel:" ), this );
mChannelLabel->setBuddy( mChannel );
layout->addWidget( mChannelLabel, 0, 1 );
@@ -75,35 +75,35 @@ void BluetoothWidget::showChannel()
mChannel->show();
}
-void BluetoothWidget::setAddress( const QString address )
+void BluetoothWidget::setAddress( const TQString address )
{
mAddress->setText( address );
}
-void BluetoothWidget::setChannel( const QString channel )
+void BluetoothWidget::setChannel( const TQString channel )
{
if ( mChannel )
mChannel->setText( channel );
}
-QString BluetoothWidget::address() const
+TQString BluetoothWidget::address() const
{
return mAddress->text();
}
-QString BluetoothWidget::channel() const
+TQString BluetoothWidget::channel() const
{
if ( mChannel->text().isEmpty() )
- return QString();
+ return TQString();
return mChannel->text();
}
// FIXME - Only IrMC specific
-IRWidget::IRWidget( QWidget *parent )
- : QWidget( parent )
+IRWidget::IRWidget( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this, 3, 3, 11, 3 );
+ TQGridLayout *layout = new TQGridLayout( this, 3, 3, 11, 3 );
mDevice = new KLineEdit( this );
mSerialNumber = new KLineEdit( this );
@@ -111,22 +111,22 @@ IRWidget::IRWidget( QWidget *parent )
layout->addWidget( mDevice, 1, 0 );
layout->addWidget( mSerialNumber, 1, 1 );
- QLabel *label = new QLabel( i18n( "Device Name:" ), this );
+ TQLabel *label = new TQLabel( i18n( "Device Name:" ), this );
label->setBuddy( mDevice );
layout->addWidget( label, 0, 0 );
- label = new QLabel( i18n( "Serial Number:" ), this );
+ label = new TQLabel( i18n( "Serial Number:" ), this );
label->setBuddy( mSerialNumber );
layout->addWidget( label, 0, 1 );
layout->setRowStretch( 2, 1 );
}
-void IRWidget::load( const QDomElement &parent )
+void IRWidget::load( const TQDomElement &parent )
{
- QDomNode node;
+ TQDomNode node;
for ( node = parent.firstChild(); !node.isNull(); node = node.nextSibling() ) {
- QDomElement element = node.toElement();
+ TQDomElement element = node.toElement();
if ( element.tagName() == "irname" )
mDevice->setText( element.text() );
else if ( element.tagName() == "irserial" )
@@ -134,9 +134,9 @@ void IRWidget::load( const QDomElement &parent )
}
}
-void IRWidget::save( QDomDocument &doc, QDomElement &parent )
+void IRWidget::save( TQDomDocument &doc, TQDomElement &parent )
{
- QDomElement element = doc.createElement( "irname" );
+ TQDomElement element = doc.createElement( "irname" );
element.appendChild( doc.createTextNode( mDevice->text() ) );
parent.appendChild( element );
@@ -146,10 +146,10 @@ void IRWidget::save( QDomDocument &doc, QDomElement &parent )
}
// FIXME - Only IrMC specific
-CableWidget::CableWidget( QWidget *parent )
- : QWidget( parent )
+CableWidget::CableWidget( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this, 3, 2, 11, 3 );
+ TQGridLayout *layout = new TQGridLayout( this, 3, 2, 11, 3 );
mManufacturer = new KComboBox( this );
mDevice = new KComboBox( true, this );
@@ -157,11 +157,11 @@ CableWidget::CableWidget( QWidget *parent )
layout->addWidget( mManufacturer, 0, 1 );
layout->addWidget( mDevice, 1, 1 );
- QLabel *label = new QLabel( i18n( "Device Manufacturer:" ), this );
+ TQLabel *label = new TQLabel( i18n( "Device Manufacturer:" ), this );
label->setBuddy( mManufacturer );
layout->addWidget( label, 0, 0 );
- label = new QLabel( i18n( "Device:" ), this );
+ label = new TQLabel( i18n( "Device:" ), this );
label->setBuddy( mDevice );
layout->addWidget( label, 1, 0 );
@@ -176,11 +176,11 @@ CableWidget::CableWidget( QWidget *parent )
mDevice->insertItem( "/dev/ttyUSB1" );
}
-void CableWidget::load( const QDomElement &parent )
+void CableWidget::load( const TQDomElement &parent )
{
- QDomNode node;
+ TQDomNode node;
for ( node = parent.firstChild(); !node.isNull(); node = node.nextSibling() ) {
- QDomElement element = node.toElement();
+ TQDomElement element = node.toElement();
if ( element.tagName() == "cabletype" )
mManufacturer->setCurrentItem( element.text().toInt() );
else if ( element.tagName() == "cabledev" )
@@ -188,10 +188,10 @@ void CableWidget::load( const QDomElement &parent )
}
}
-void CableWidget::save( QDomDocument &doc, QDomElement &parent )
+void CableWidget::save( TQDomDocument &doc, TQDomElement &parent )
{
- QDomElement element = doc.createElement( "cabletype" );
- element.appendChild( doc.createTextNode( QString::number( mManufacturer->currentItem() ) ) );
+ TQDomElement element = doc.createElement( "cabletype" );
+ element.appendChild( doc.createTextNode( TQString::number( mManufacturer->currentItem() ) ) );
parent.appendChild( element );
element = doc.createElement( "cabledev" );
@@ -199,15 +199,15 @@ void CableWidget::save( QDomDocument &doc, QDomElement &parent )
parent.appendChild( element );
}
-UsbWidget::UsbWidget( QWidget *parent )
- : QWidget( parent )
+UsbWidget::UsbWidget( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this, 3, 2, 11, 3);
+ TQGridLayout *layout = new TQGridLayout( this, 3, 2, 11, 3);
- mInterface = new QSpinBox( this );
+ mInterface = new TQSpinBox( this );
layout->addWidget( mInterface, 0, 1 );
- QLabel *label = new QLabel( i18n( "USB Interface:" ), this );
+ TQLabel *label = new TQLabel( i18n( "USB Interface:" ), this );
label->setBuddy( mInterface );
layout->addWidget( label, 0, 0 );