summaryrefslogtreecommitdiffstats
path: root/wifi/kcmwifi/kcmwifi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wifi/kcmwifi/kcmwifi.cpp')
-rw-r--r--wifi/kcmwifi/kcmwifi.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/wifi/kcmwifi/kcmwifi.cpp b/wifi/kcmwifi/kcmwifi.cpp
index 693edc92..743f3d2e 100644
--- a/wifi/kcmwifi/kcmwifi.cpp
+++ b/wifi/kcmwifi/kcmwifi.cpp
@@ -18,10 +18,10 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qtabwidget.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqtabwidget.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
#include <kaboutdata.h>
#include <kdebug.h>
@@ -39,13 +39,13 @@
#include "wificonfig.h"
#include "vendorconfig.h"
-typedef KGenericFactory < KCMWifi, QWidget > KWiFiFactory;
+typedef KGenericFactory < KCMWifi, TQWidget > KWiFiFactory;
K_EXPORT_COMPONENT_FACTORY (kcm_wifi, KWiFiFactory("kcmwifi") )
-KCMWifi::KCMWifi(QWidget * parent, const char *name, const QStringList &)
+KCMWifi::KCMWifi(TQWidget * parent, const char *name, const TQStringList &)
: KCModule (parent, name)
{
- tabs = new QTabWidget (this, "tabs");
+ tabs = new TQTabWidget (this, "tabs");
m_mainConfig = new MainConfig(this, "m_mainConfig");
@@ -55,18 +55,18 @@ KCMWifi::KCMWifi(QWidget * parent, const char *name, const QStringList &)
{
IfConfigPage *ifConfigPage = new IfConfigPage( i, tabs, "m_configPage" );
tabs->addTab(ifConfigPage, i18n ("Config &%1").arg( i+1 ));
- connect(ifConfigPage, SIGNAL(changed()), SLOT( slotChanged() ) );
+ connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) );
m_ifConfigPage[ i ] = ifConfigPage;
}
- QVBoxLayout *top = new QVBoxLayout (this, 0, KDialog::spacingHint());
+ TQVBoxLayout *top = new TQVBoxLayout (this, 0, KDialog::spacingHint());
top->addWidget( tabs );
top->addWidget( m_mainConfig );
top->addStretch();
- connect(m_mainConfig, SIGNAL(changed()), SLOT( slotChanged() ) );
- connect(m_mainConfig, SIGNAL(activateClicked()), SLOT(slotActivate()));
+ connect(m_mainConfig, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) );
+ connect(m_mainConfig, TQT_SIGNAL(activateClicked()), TQT_SLOT(slotActivate()));
if ( geteuid() != 0 )
{
@@ -147,7 +147,7 @@ IfConfigPage* KCMWifi::addConfigTab( int count, bool vendor )
{
IfConfigPage *ifConfigPage = new IfConfigPage( vendorBase + m_activeVendorCount, tabs, "m_configPage" );
tabs->addTab(ifConfigPage, i18n ("Vendor %1").arg( m_activeVendorCount+1 ) );
- connect(ifConfigPage, SIGNAL(changed()), SLOT( slotChanged() ) );
+ connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) );
m_ifConfigPage[ vendorBase+m_activeVendorCount ] = ifConfigPage;
m_mainConfig->registerConfig( vendorBase+m_activeVendorCount );
m_activeVendorCount++;
@@ -170,7 +170,7 @@ IfConfigPage* KCMWifi::addConfigTab( int count, bool vendor )
{
IfConfigPage *ifConfigPage = new IfConfigPage( i, tabs, "m_configPage" );
tabs->insertTab(ifConfigPage, i18n ("Config &%1").arg( i+1 ), i );
- connect(ifConfigPage, SIGNAL(changed()), SLOT( slotChanged() ) );
+ connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) );
m_ifConfigPage[ i ] = ifConfigPage;
m_mainConfig->registerConfig( i+1 );
retval = ifConfigPage;
@@ -203,7 +203,7 @@ void KCMWifi::activate()
{
KProcess proc;
- QStringList failedParts;
+ TQStringList failedParts;
WifiConfig *config = WifiConfig::instance();
int index;
@@ -219,7 +219,7 @@ void KCMWifi::activate()
IfConfig ifconfig = config->m_ifConfig[ index ];
- QString tempInterface;
+ TQString tempInterface;
if ( ifconfig.m_interface.isEmpty() ) {
tempInterface = config->autoDetectInterface();
@@ -295,8 +295,8 @@ void KCMWifi::activate()
if ( ifconfig.m_keys[ i ].isValid( ifconfig.m_keys[ i ].key() ) > INVALID )
{
proc << "key"
- << QString( "[%1]").arg( i+1 )
- << QString( "%1").arg( ifconfig.m_keys[ i ].rawKey() );
+ << TQString( "[%1]").arg( i+1 )
+ << TQString( "%1").arg( ifconfig.m_keys[ i ].rawKey() );
}
}
@@ -308,7 +308,7 @@ void KCMWifi::activate()
proc << "key"
<< ifconfig.cryptomodeAsString();
proc << "key"
- << QString( "[%1]" ).arg( ifconfig.activeKeyId() );
+ << TQString( "[%1]" ).arg( ifconfig.activeKeyId() );
proc << "key"
<< "on";
}
@@ -334,10 +334,10 @@ void KCMWifi::activate()
{
proc << "power"
<< "period"
- << QString( "%1" ).arg( ifconfig.m_wakeupPeriod );
+ << TQString( "%1" ).arg( ifconfig.m_wakeupPeriod );
proc << "power"
<< "timeout"
- << QString( "%1" ).arg( ifconfig.m_sleepTimeout );
+ << TQString( "%1" ).arg( ifconfig.m_sleepTimeout );
proc << ifconfig.powermodeAsString();
}
@@ -361,7 +361,7 @@ void KCMWifi::activate()
if ( ifconfig.m_runScript )
{
proc.clearArguments();
- proc << QStringList::split( " ", ifconfig.m_connectScript );
+ proc << TQStringList::split( " ", ifconfig.m_connectScript );
proc.start(KProcess::DontCare);
}