summaryrefslogtreecommitdiffstats
path: root/ksim/library/themeloader.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
commit6335dc55802871b5a43492f217b6edbb420204c4 (patch)
tree50c6c8672a52687568edea475614dfe3d98e62e5 /ksim/library/themeloader.cpp
parent9b8c9f1f9e974ff0176108cfbd8852cd99ea68c8 (diff)
downloadtdeutils-6335dc55802871b5a43492f217b6edbb420204c4.tar.gz
tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/library/themeloader.cpp')
-rw-r--r--ksim/library/themeloader.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/ksim/library/themeloader.cpp b/ksim/library/themeloader.cpp
index b532ab9..58a6f61 100644
--- a/ksim/library/themeloader.cpp
+++ b/ksim/library/themeloader.cpp
@@ -63,7 +63,7 @@ class KSim::Theme::Private
TQString text;
TQStringList::ConstIterator it;
for (it = file.begin(); it != file.end(); ++it) {
- if ((*it).tqfind(entry) != -1) {
+ if ((*it).find(entry) != -1) {
text = TQStringList::split("=", (*it))[1].stripWhiteSpace();
}
}
@@ -73,7 +73,7 @@ class KSim::Theme::Private
TQStringList::ConstIterator it2;
for (it2 = dFile.begin(); it2 != dFile.end(); ++it) {
- if ((*it2).tqfind(entry) != -1) {
+ if ((*it2).find(entry) != -1) {
text = TQStringList::split("=", (*it2))[1].stripWhiteSpace();
}
}
@@ -135,13 +135,13 @@ TQString KSim::Theme::name() const
if (name.endsWith("/"))
name.remove(name.length() - 1, 1);
- return name.remove(0, name.tqfindRev("/") + 1);
+ return name.remove(0, name.findRev("/") + 1);
}
TQString KSim::Theme::author() const
{
TQString author(d->readOption("author", false));
- return author.tqreplace(TQRegExp("\""), TQString());
+ return author.replace(TQRegExp("\""), TQString());
}
int KSim::Theme::fontItem() const
@@ -318,7 +318,7 @@ TQFont KSim::Theme::largeFont() const
return TQApplication::font();
TQFont themeFont;
- themeFont.setRawName(font.tqreplace(TQRegExp("\""), TQString()));
+ themeFont.setRawName(font.replace(TQRegExp("\""), TQString()));
return themeFont;
}
@@ -330,7 +330,7 @@ TQFont KSim::Theme::normalFont() const
return TQApplication::font();
TQFont themeFont;
- themeFont.setRawName(font.tqreplace(TQRegExp("\""), TQString()));
+ themeFont.setRawName(font.replace(TQRegExp("\""), TQString()));
return themeFont;
}
@@ -342,7 +342,7 @@ TQFont KSim::Theme::smallFont() const
return TQApplication::font();
TQFont themeFont;
- themeFont.setRawName(font.tqreplace(TQRegExp("\""), TQString()));
+ themeFont.setRawName(font.replace(TQRegExp("\""), TQString()));
return themeFont;
}
@@ -644,7 +644,7 @@ bool KSim::Theme::textShadow(const TQString &itemType,
return false;
TQString shadow = readEntry(itemType, entry);
- if (shadow.isEmpty() || shadow.tqfindRev("none") != -1)
+ if (shadow.isEmpty() || shadow.findRev("none") != -1)
return false;
return true;
@@ -997,26 +997,26 @@ TQString KSim::ThemeLoader::parseConfig(const TQString &url,
while (!origStream.atEnd()) {
TQString line(origStream.readLine().simplifyWhiteSpace());
- if (line.tqfind(reg) == 0) // find the location of the * comments
+ if (line.find(reg) == 0) // find the location of the * comments
// replace all * comments with # comments so KConfig doesn't complain
- line.tqreplace(reg, "#");
+ line.replace(reg, "#");
- if (line.tqfind("#") == -1) { // find the location of the string 'gkrellmms'
- if (line.tqfindRev("=") == -1) { // if found we check for the string '='
- int numLoc = line.tqfindRev(numbers);
+ if (line.find("#") == -1) { // find the location of the string 'gkrellmms'
+ if (line.findRev("=") == -1) { // if found we check for the string '='
+ int numLoc = line.findRev(numbers);
if (numLoc != -1)
// if '=' doesn't exist we add one so KConfig doesn't complain
line.insert(numLoc, " = ");
- numLoc = line.tqfindRev(number);
+ numLoc = line.findRev(number);
if (numLoc != -1)
// if '=' doesn't exist we add one so KConfig doesn't complain
line.insert(numLoc, " = ");
- numLoc = line.tqfindRev(minus);
+ numLoc = line.findRev(minus);
if (numLoc != -1)
// replace the '-' with an '=' so KConfig doesn't get confused
- line.tqreplace(TQRegExp("-"), "=");
+ line.replace(TQRegExp("-"), "=");
}
}
@@ -1038,7 +1038,7 @@ void KSim::ThemeLoader::parseDir(const TQString &url, int alt)
homePath = locateLocal( "data", "ksim" )
+ TQString::tqfromLatin1( "/themes" )
+ homePath.right( homePath.length()
- - homePath.tqfindRev( TQRegExp( "\\/" ),
+ - homePath.findRev( TQRegExp( "\\/" ),
homePath.length() ) );
if ( !TQFile::exists( homePath ) )