summaryrefslogtreecommitdiffstats
path: root/kdecore/krootprop.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit6e21bc798ba1066147d69dcc2d5c222ffafb9a90 (patch)
tree36613dfe2f86f8ccb96a30f3880507341228eeb0 /kdecore/krootprop.cpp
parent1e9fe867b0def399c63c42f35e83c3575e91ff83 (diff)
downloadtdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.tar.gz
tdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/krootprop.cpp')
-rw-r--r--kdecore/krootprop.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdecore/krootprop.cpp b/kdecore/krootprop.cpp
index 88f82b7d3..031e27abf 100644
--- a/kdecore/krootprop.cpp
+++ b/kdecore/krootprop.cpp
@@ -118,7 +118,7 @@ void KRootProp::setProp( const TQString& rProp )
{
// parse the string for first key-value pair separator '\n'
- i = s.tqfind("\n");
+ i = s.find("\n");
if(i == -1)
i = s.length();
@@ -131,7 +131,7 @@ void KRootProp::setProp( const TQString& rProp )
keypair.simplifyWhiteSpace();
- i = keypair.tqfind( "=" );
+ i = keypair.find( "=" );
if( i != -1 )
{
key = keypair.left( i );
@@ -160,7 +160,7 @@ void KRootProp::destroy()
TQString KRootProp::readEntry( const TQString& rKey,
const TQString& pDefault ) const
{
- if( propDict.tqcontains( rKey ) )
+ if( propDict.contains( rKey ) )
return propDict[ rKey ];
else
return pDefault;
@@ -217,18 +217,18 @@ TQColor KRootProp::readColorEntry( const TQString& rKey,
// Support #ffffff style color naming.
// Help ease transistion from legacy KDE setups
- if( aValue.tqfind("#") == 0 ) {
+ if( aValue.find("#") == 0 ) {
aRetColor.setNamedColor( aValue );
return aRetColor;
}
// Parse "red,green,blue"
// find first comma
- int nIndex1 = aValue.tqfind( ',' );
+ int nIndex1 = aValue.find( ',' );
if( nIndex1 == -1 )
return aRetColor;
// find second comma
- int nIndex2 = aValue.tqfind( ',', nIndex1+1 );
+ int nIndex2 = aValue.find( ',', nIndex1+1 );
if( nIndex2 == -1 )
return aRetColor;
@@ -246,9 +246,9 @@ TQColor KRootProp::readColorEntry( const TQString& rKey,
TQString KRootProp::writeEntry( const TQString& rKey, const TQString& rValue )
{
dirty = true;
- if ( propDict.tqcontains( rKey ) ) {
+ if ( propDict.contains( rKey ) ) {
TQString aValue = propDict[ rKey ];
- propDict.tqreplace( rKey, rValue );
+ propDict.replace( rKey, rValue );
return aValue;
}
else {
@@ -280,7 +280,7 @@ TQString KRootProp::writeEntry( const TQString& rKey, const TQColor& rColor )
TQString KRootProp::removeEntry(const TQString& rKey)
{
- if (propDict.tqcontains(rKey)) {
+ if (propDict.contains(rKey)) {
dirty = true;
TQString aValue = propDict[rKey];
propDict.remove(rKey);