From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: 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 --- wifi/kcmwifi/mainconfig.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'wifi/kcmwifi/mainconfig.cpp') diff --git a/wifi/kcmwifi/mainconfig.cpp b/wifi/kcmwifi/mainconfig.cpp index c740df69..6989316a 100644 --- a/wifi/kcmwifi/mainconfig.cpp +++ b/wifi/kcmwifi/mainconfig.cpp @@ -33,13 +33,13 @@ #include #include -MainConfig::MainConfig( TQWidget *parent, const char *name ) - : MainConfigBase( parent, name ) +MainConfig::MainConfig( TQWidget *tqparent, const char *name ) + : MainConfigBase( tqparent, name ) { WifiConfig *config = WifiConfig::instance(); for (int i=1;i<=config->m_numConfigs;i++) { - cmb_presetConfig->insertItem( i18n( "Config %1" ).arg( i ) ); + cmb_presetConfig->insertItem( i18n( "Config %1" ).tqarg( i ) ); } @@ -78,12 +78,12 @@ void MainConfig::slotChangeNumConfigs( int newnumber ) if ( config->m_numConfigs < newnumber ) // number of configs raised { int diff = newnumber - config->m_numConfigs; - ( (KCMWifi*)parentWidget() )->addConfigTab( diff, false ); + ( (KCMWifi*)tqparentWidget() )->addConfigTab( diff, false ); } else // number of configs lowered { int diff = config->m_numConfigs - newnumber; - ( (KCMWifi*)parentWidget() )->delConfigTab( diff ); + ( (KCMWifi*)tqparentWidget() )->delConfigTab( diff ); } } @@ -91,12 +91,12 @@ void MainConfig::registerConfig( int number ) { if ( number >= KCMWifi::vendorBase ) { - cmb_presetConfig->insertItem( i18n( "Vendor %1" ).arg( number-KCMWifi::vendorBase+1 ) ); + cmb_presetConfig->insertItem( i18n( "Vendor %1" ).tqarg( number-KCMWifi::vendorBase+1 ) ); } else { WifiConfig* config = WifiConfig::instance(); - cmb_presetConfig->insertItem( i18n( "Config %1" ).arg( number ), number-1 ); + cmb_presetConfig->insertItem( i18n( "Config %1" ).tqarg( number ), number-1 ); } } -- cgit v1.2.1