diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | e05894553004a47b1e2f276bedcf5963b57a3932 (patch) | |
tree | 2c12af14a609c053131e3a463068fa7589e6ac6a /src/microsettings.cpp | |
parent | 60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff) | |
download | ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/microsettings.cpp')
-rw-r--r-- | src/microsettings.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/microsettings.cpp b/src/microsettings.cpp index 6790582..f10ca72 100644 --- a/src/microsettings.cpp +++ b/src/microsettings.cpp @@ -136,7 +136,7 @@ PinSettings* MicroSettings::pinWithID( const TQString &id ) int MicroSettings::portState( const TQString &port ) { - if ( microInfo()->package()->portNames().tqfindIndex(port) == -1 ) return -1; + if ( microInfo()->package()->portNames().findIndex(port) == -1 ) return -1; int pinPower = 1; int num = 0; @@ -157,7 +157,7 @@ int MicroSettings::portState( const TQString &port ) int MicroSettings::portType( const TQString &port ) { - if ( microInfo()->package()->portNames().tqfindIndex(port) == -1 ) return -1; + if ( microInfo()->package()->portNames().findIndex(port) == -1 ) return -1; int pinPower = 1; int num = 0; @@ -177,7 +177,7 @@ int MicroSettings::portType( const TQString &port ) void MicroSettings::setPortState( const TQString &port, int state ) { - PortList::iterator plit = m_ports.tqfind(port); + PortList::iterator plit = m_ports.find(port); if ( plit == m_ports.end() ) return; const PinSettingsList::iterator plitEnd = plit.data().end(); @@ -192,7 +192,7 @@ void MicroSettings::setPortState( const TQString &port, int state ) void MicroSettings::setPortType( const TQString &port, int type ) { - PortList::iterator plit = m_ports.tqfind(port); + PortList::iterator plit = m_ports.find(port); if ( plit == m_ports.end() ) return; const PinSettingsList::iterator plitEnd = plit.data().end(); @@ -254,7 +254,7 @@ void MicroSettings::restoreFromMicroData( const MicroData µData ) void MicroSettings::setVariable( const TQString &name, TQVariant value, bool permanent ) { if ( name.isNull() ) return; - VariableMap::iterator it = m_variableMap.tqfind(name); + VariableMap::iterator it = m_variableMap.find(name); if ( it != m_variableMap.end() ) { it.data().setValue(value); @@ -287,7 +287,7 @@ TQStringList MicroSettings::variableNames() VariableInfo* MicroSettings::variableInfo( const TQString &name ) { if ( name.isNull() ) return 0l; - VariableMap::iterator it = m_variableMap.tqfind(name); + VariableMap::iterator it = m_variableMap.find(name); if ( it != m_variableMap.end() ) { return &(it.data()); } else { @@ -299,7 +299,7 @@ VariableInfo* MicroSettings::variableInfo( const TQString &name ) bool MicroSettings::deleteVariable( const TQString &name ) { if ( name.isNull() ) return false; - VariableMap::iterator it = m_variableMap.tqfind(name); + VariableMap::iterator it = m_variableMap.find(name); if ( it != m_variableMap.end() ) { m_variableMap.erase(it); |