summaryrefslogtreecommitdiffstats
path: root/wifi/networkscanning.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /wifi/networkscanning.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/networkscanning.cpp')
-rw-r--r--wifi/networkscanning.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/wifi/networkscanning.cpp b/wifi/networkscanning.cpp
index 5a15ffbc..7e2a0e12 100644
--- a/wifi/networkscanning.cpp
+++ b/wifi/networkscanning.cpp
@@ -17,11 +17,11 @@
#include <stdio.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qtable.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqtable.h>
#include <kdebug.h>
#include <klocale.h>
@@ -32,7 +32,7 @@
#include "networkscanning.h"
#include "interface_wireless.h"
-NetworkScanning::NetworkScanning (Interface_wireless * dev, QWidget * parent, const char * name ) : QWidget ( parent, name ) {
+NetworkScanning::NetworkScanning (Interface_wireless * dev, TQWidget * parent, const char * name ) : TQWidget ( parent, name ) {
device = dev;
networkScan();
}
@@ -52,24 +52,24 @@ NetworkScanning::networkScan ()
if ( networks->text( i, 3 ) == i18n( "off" )) networks->setRowReadOnly( i, true );
}
- networks->setSelectionMode(QTable::SingleRow);
- connect(networks,SIGNAL(selectionChanged()),this,SLOT(checkWEP()));
+ networks->setSelectionMode(TQTable::SingleRow);
+ connect(networks,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(checkWEP()));
this->setCaption( i18n( "Scan Results" ) );
- QGridLayout* networkSelectionLayout = new QGridLayout ( this, 2, 3, 0, 5);
- switchNet = new QPushButton( i18n( "Switch to Network..." ), this );
+ TQGridLayout* networkSelectionLayout = new TQGridLayout ( this, 2, 3, 0, 5);
+ switchNet = new TQPushButton( i18n( "Switch to Network..." ), this );
switchNet->setEnabled(false);
- QPushButton* close = new QPushButton( i18n( "Close" ), this );
+ TQPushButton* close = new TQPushButton( i18n( "Close" ), this );
- networks->reparent( this, QPoint( 0, 0 ) );
+ networks->reparent( this, TQPoint( 0, 0 ) );
networks->setLeftMargin( 0 );
networks->verticalHeader()->hide();
- connect ( close, SIGNAL( clicked() ), this, SLOT( hide() ) );
- connect ( switchNet, SIGNAL( clicked() ), this, SLOT( switchToNetwork() ) );
- connect ( networks, SIGNAL( currentChanged(int,int)), this, SLOT( checkSettings(int,int)));
- connect ( networks, SIGNAL( valueChanged(int,int)), this, SLOT( checkSettings(int,int)));
+ connect ( close, TQT_SIGNAL( clicked() ), this, TQT_SLOT( hide() ) );
+ connect ( switchNet, TQT_SIGNAL( clicked() ), this, TQT_SLOT( switchToNetwork() ) );
+ connect ( networks, TQT_SIGNAL( currentChanged(int,int)), this, TQT_SLOT( checkSettings(int,int)));
+ connect ( networks, TQT_SIGNAL( valueChanged(int,int)), this, TQT_SLOT( checkSettings(int,int)));
networkSelectionLayout->addMultiCellWidget( networks, 0, 0, 0, 2 );
networkSelectionLayout->addWidget( switchNet, 1, 0 );
@@ -113,20 +113,20 @@ NetworkScanning::switchToNetwork()
return;
}
- QString cmdline;
+ TQString cmdline;
- KTempFile* tempfile = new KTempFile( QString::null, QString::null, 0700 );
- QString tempfilename = tempfile->name();
+ KTempFile* tempfile = new KTempFile( TQString::null, TQString::null, 0700 );
+ TQString tempfilename = tempfile->name();
- cmdline = (QString)"ifconfig %1 down\n";
+ cmdline = (TQString)"ifconfig %1 down\n";
cmdline = cmdline.arg( device->get_interface_name() );
write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) );
- cmdline = (QString)"iwconfig %1 essid %2 mode %3 enc %4\n";
+ cmdline = (TQString)"iwconfig %1 essid %2 mode %3 enc %4\n";
cmdline = cmdline.arg( device->get_interface_name() );
cmdline = cmdline.arg( KProcess::quote( networks->text( networks->currentRow(), 0 ) ) );
- QString modetemp;
+ TQString modetemp;
if (networks->text( networks->currentRow(), 1 ) == i18n("Managed") ) modetemp = "Managed"; else modetemp = "Ad-Hoc";
cmdline = cmdline.arg( modetemp );
@@ -137,7 +137,7 @@ NetworkScanning::switchToNetwork()
}
write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) );
- cmdline = (QString)"ifconfig %1 up\n";
+ cmdline = (TQString)"ifconfig %1 up\n";
cmdline = cmdline.arg( device->get_interface_name() );
write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) );