diff options
Diffstat (limited to 'wifi/kcmwifi/wificonfig.cpp')
-rw-r--r-- | wifi/kcmwifi/wificonfig.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/wifi/kcmwifi/wificonfig.cpp b/wifi/kcmwifi/wificonfig.cpp index 1cd6b3f2..1f3087ba 100644 --- a/wifi/kcmwifi/wificonfig.cpp +++ b/wifi/kcmwifi/wificonfig.cpp @@ -119,7 +119,7 @@ void IfConfig::load( KConfig *config, int i ) { TQString entry; - TQString group = TQString( "Configuration %1" ).arg( i+1 ); + TQString group = TQString( "Configuration %1" ).tqarg( i+1 ); config->setGroup( group ); m_networkName = config->readEntry( "NetworkName" ); @@ -150,7 +150,7 @@ void IfConfig::load( KConfig *config, int i ) void IfConfig::save( KConfig *config, int i ) { - TQString group = TQString( "Configuration %1" ).arg( i+1 ); + TQString group = TQString( "Configuration %1" ).tqarg( i+1 ); config->setGroup( group ); config->writeEntry( "NetworkName", m_networkName ); @@ -246,9 +246,9 @@ TQString WifiConfig::autoDetectInterface() while ( !procFile.atEnd() ) { procFile.readLine( line, 9999 ); - if ( line.find( ":" ) > 0 ) + if ( line.tqfind( ":" ) > 0 ) { - line.truncate ( line.find( ":" ) ); + line.truncate ( line.tqfind( ":" ) ); list.append( line.stripWhiteSpace() ); } } @@ -264,7 +264,7 @@ TQString WifiConfig::autoDetectInterface() for ( TQStringList::Iterator it = list.begin (); it != list.end (); ++it ) { - if ( ((*it).contains("wifi"))==0 ) { // if the name is wifiX, ignore + if ( ((*it).tqcontains("wifi"))==0 ) { // if the name is wifiX, ignore KProcIO test; test << "iwconfig"; test << *it; @@ -288,9 +288,9 @@ void WifiConfig::slotTestInterface( KProcIO *proc ) { TQString output; proc->readln( output ); - if ( output.find ( "no wireless extensions" ) == -1 ) + if ( output.tqfind ( "no wireless extensions" ) == -1 ) { - output.truncate( output.find ( " " ) ); + output.truncate( output.tqfind ( " " ) ); m_detectedInterface = output.stripWhiteSpace(); printf("[kcontrol wificonfig] Wireless extensions not available on specified interface\n\r"); } @@ -328,7 +328,7 @@ Key IfConfig::activeKey() IfConfig::Speed IfConfig::convertToSpeedFromString( const TQString &s ) { - return ( IfConfig::Speed )speedList.findIndex( s ); + return ( IfConfig::Speed )speedList.tqfindIndex( s ); } void IfConfig::speedFromString( const TQString &s ) @@ -338,7 +338,7 @@ void IfConfig::speedFromString( const TQString &s ) IfConfig::WifiMode IfConfig::convertToWifiModeFromString( const TQString &s ) { - return ( IfConfig::WifiMode )wifiModeList.findIndex( s ); + return ( IfConfig::WifiMode )wifiModeList.tqfindIndex( s ); } void IfConfig::wifimodeFromString( const TQString &s ) @@ -348,7 +348,7 @@ void IfConfig::wifimodeFromString( const TQString &s ) IfConfig::CryptoMode IfConfig::convertToCryptoModeFromString( const TQString &s ) { - return ( IfConfig::CryptoMode )cryptoModeList.findIndex( s ); + return ( IfConfig::CryptoMode )cryptoModeList.tqfindIndex( s ); } void IfConfig::cryptomodeFromString( const TQString &s ) @@ -358,7 +358,7 @@ void IfConfig::cryptomodeFromString( const TQString &s ) IfConfig::PowerMode IfConfig::convertToPowerModeFromString( const TQString &s ) { - return ( IfConfig::PowerMode )powerModeList.findIndex( s ); + return ( IfConfig::PowerMode )powerModeList.tqfindIndex( s ); } void IfConfig::powermodeFromString( const TQString &s ) |