summaryrefslogtreecommitdiffstats
path: root/wifi/kcmwifi/kcmwifi.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /wifi/kcmwifi/kcmwifi.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/kcmwifi/kcmwifi.cpp')
-rw-r--r--wifi/kcmwifi/kcmwifi.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/wifi/kcmwifi/kcmwifi.cpp b/wifi/kcmwifi/kcmwifi.cpp
index 743f3d2e..8251afa0 100644
--- a/wifi/kcmwifi/kcmwifi.cpp
+++ b/wifi/kcmwifi/kcmwifi.cpp
@@ -42,8 +42,8 @@
typedef KGenericFactory < KCMWifi, TQWidget > KWiFiFactory;
K_EXPORT_COMPONENT_FACTORY (kcm_wifi, KWiFiFactory("kcmwifi") )
-KCMWifi::KCMWifi(TQWidget * parent, const char *name, const TQStringList &)
- : KCModule (parent, name)
+KCMWifi::KCMWifi(TQWidget * tqparent, const char *name, const TQStringList &)
+ : KCModule (tqparent, name)
{
tabs = new TQTabWidget (this, "tabs");
@@ -54,7 +54,7 @@ KCMWifi::KCMWifi(TQWidget * parent, const char *name, const TQStringList &)
for ( int i=0; i<config->m_numConfigs; ++i )
{
IfConfigPage *ifConfigPage = new IfConfigPage( i, tabs, "m_configPage" );
- tabs->addTab(ifConfigPage, i18n ("Config &%1").arg( i+1 ));
+ tabs->addTab(ifConfigPage, i18n ("Config &%1").tqarg( i+1 ));
connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) );
m_ifConfigPage[ i ] = ifConfigPage;
@@ -146,7 +146,7 @@ IfConfigPage* KCMWifi::addConfigTab( int count, bool vendor )
if (vendor)
{
IfConfigPage *ifConfigPage = new IfConfigPage( vendorBase + m_activeVendorCount, tabs, "m_configPage" );
- tabs->addTab(ifConfigPage, i18n ("Vendor %1").arg( m_activeVendorCount+1 ) );
+ tabs->addTab(ifConfigPage, i18n ("Vendor %1").tqarg( m_activeVendorCount+1 ) );
connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) );
m_ifConfigPage[ vendorBase+m_activeVendorCount ] = ifConfigPage;
m_mainConfig->registerConfig( vendorBase+m_activeVendorCount );
@@ -169,7 +169,7 @@ IfConfigPage* KCMWifi::addConfigTab( int count, bool vendor )
for ( int i=config->m_numConfigs; i<config->m_numConfigs+count; i++ )
{
IfConfigPage *ifConfigPage = new IfConfigPage( i, tabs, "m_configPage" );
- tabs->insertTab(ifConfigPage, i18n ("Config &%1").arg( i+1 ), i );
+ tabs->insertTab(ifConfigPage, i18n ("Config &%1").tqarg( i+1 ), i );
connect(ifConfigPage, TQT_SIGNAL(changed()), TQT_SLOT( slotChanged() ) );
m_ifConfigPage[ i ] = ifConfigPage;
m_mainConfig->registerConfig( i+1 );
@@ -295,8 +295,8 @@ void KCMWifi::activate()
if ( ifconfig.m_keys[ i ].isValid( ifconfig.m_keys[ i ].key() ) > INVALID )
{
proc << "key"
- << TQString( "[%1]").arg( i+1 )
- << TQString( "%1").arg( ifconfig.m_keys[ i ].rawKey() );
+ << TQString( "[%1]").tqarg( i+1 )
+ << TQString( "%1").tqarg( ifconfig.m_keys[ i ].rawKey() );
}
}
@@ -308,7 +308,7 @@ void KCMWifi::activate()
proc << "key"
<< ifconfig.cryptomodeAsString();
proc << "key"
- << TQString( "[%1]" ).arg( ifconfig.activeKeyId() );
+ << TQString( "[%1]" ).tqarg( ifconfig.activeKeyId() );
proc << "key"
<< "on";
}
@@ -334,10 +334,10 @@ void KCMWifi::activate()
{
proc << "power"
<< "period"
- << TQString( "%1" ).arg( ifconfig.m_wakeupPeriod );
+ << TQString( "%1" ).tqarg( ifconfig.m_wakeupPeriod );
proc << "power"
<< "timeout"
- << TQString( "%1" ).arg( ifconfig.m_sleepTimeout );
+ << TQString( "%1" ).tqarg( ifconfig.m_sleepTimeout );
proc << ifconfig.powermodeAsString();
}