summaryrefslogtreecommitdiffstats
path: root/common/config_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/config_file.c')
-rw-r--r--common/config_file.c14
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