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 | a66f7ec245037f5a3d9c57717d749d4f7d06f2ca (patch) | |
tree | 5e8c277053cfe1bea935427b01ba21c9ba4ba74d /common/config_file.c | |
parent | f99a392f816fcaa1cb6dc17a020402d2e9c738af (diff) | |
download | tde-style-qtcurve-a66f7ec245037f5a3d9c57717d749d4f7d06f2ca.tar.gz tde-style-qtcurve-a66f7ec245037f5a3d9c57717d749d4f7d06f2ca.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-style-qtcurve@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'common/config_file.c')
-rw-r--r-- | common/config_file.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/config_file.c b/common/config_file.c index 98948ab..a144ae6 100644 --- a/common/config_file.c +++ b/common/config_file.c @@ -600,7 +600,7 @@ static bool makeDir(const TQString& dir, int mode) #if 0x039999 >= 0x040000 int pos = target.indexOf('/', i); #else - int pos = target.tqfind('/', i); + int pos = target.find('/', i); #endif base += target.mid(i - 1, pos - i + 1); TQByteArray baseEncoded = TQFile::encodeName(base); @@ -892,7 +892,7 @@ class TQtCConfig TQtCConfig(const TQString &filename); bool ok() const { return values.count()>0; } - bool hasKey(const TQString &key) { return values.tqcontains(key); } + bool hasKey(const TQString &key) { return values.contains(key); } const TQString & readEntry(const TQString &key, const TQString &def=TQString()); private: @@ -919,7 +919,7 @@ TQtCConfig::TQtCConfig(const TQString &filename) #if 0x039999 >= 0x040000 int pos=line.indexOf('='); #else - int pos=line.tqfind('='); + int pos=line.find('='); #endif if(-1!=pos) values[line.left(pos)]=line.mid(pos+1); @@ -930,7 +930,7 @@ TQtCConfig::TQtCConfig(const TQString &filename) inline const TQString & TQtCConfig::readEntry(const TQString &key, const TQString &def) { - return values.tqcontains(key) ? values[key] : def; + return values.contains(key) ? values[key] : def; } inline TQString readStringEntry(TQtCConfig &cfg, const TQString &key) @@ -3225,7 +3225,7 @@ bool static writeConfig(KConfig *cfg, const Options &opts, const Options &def, b #endif for(unsigned int i=0; i<opts.titlebarButtonColors.size(); ++i) { - TBCols::const_iterator c(opts.titlebarButtonColors.tqfind((ETitleBarButtons)i)); + TBCols::const_iterator c(opts.titlebarButtonColors.find((ETitleBarButtons)i)); if(c!=opts.titlebarButtonColors.end()) { @@ -3270,7 +3270,7 @@ bool static writeConfig(KConfig *cfg, const Options &opts, const Options &def, b for(int i=APPEARANCE_CUSTOM1; i<(APPEARANCE_CUSTOM1+NUM_CUSTOM_GRAD); ++i) { - GradientCont::const_iterator cg(opts.customGradient.tqfind((EAppearance)i)); + GradientCont::const_iterator cg(opts.customGradient.find((EAppearance)i)); TQString gradKey; gradKey.sprintf("customgradient%d", (i-APPEARANCE_CUSTOM1)+1); @@ -3281,7 +3281,7 @@ bool static writeConfig(KConfig *cfg, const Options &opts, const Options &def, b { GradientCont::const_iterator d; - if(exportingStyle || (d=def.customGradient.tqfind((EAppearance)i))==def.customGradient.end() || !((*d)==(*cg))) + if(exportingStyle || (d=def.customGradient.find((EAppearance)i))==def.customGradient.end() || !((*d)==(*cg))) { TQString gradVal; #if 0x039999 >= 0x040000 |