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 | 7c27bddd54511adb53cf93195999cffc56dedced (patch) | |
tree | ff36bef6f4ec37e34ce907c35256fe17b0988630 | |
parent | a7dcba0bccd505f672310722d7205c60f57c9c17 (diff) | |
download | ksplash-engine-moodin-7c27bddd54511adb53cf93195999cffc56dedced.tar.gz ksplash-engine-moodin-7c27bddd54511adb53cf93195999cffc56dedced.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksplash-engine-moodin@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | src/magiclabel.cpp | 16 | ||||
-rw-r--r-- | src/thememoodin.cpp | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/magiclabel.cpp b/src/magiclabel.cpp index 8a6fb3f..5b30252 100644 --- a/src/magiclabel.cpp +++ b/src/magiclabel.cpp @@ -37,7 +37,7 @@ MagicLabel::MagicLabel(TQString s, bool translate) void MagicLabel::transform() { - if (mValue.tqcontains(prefix + preUSER)) + if (mValue.contains(prefix + preUSER)) getUserInfo(); else if (mValue.startsWith(prefix + preCMD)) getCommandOutput(); @@ -48,12 +48,12 @@ void MagicLabel::getUserInfo() { static KUser user; - if (mValue.tqcontains(prefix + preUSER + "loginname")) - mValue = mValue.tqreplace(prefix + preUSER + "loginname", user.loginName()); - else if (mValue.tqcontains(prefix + preUSER + "fullname")) - mValue = mValue.tqreplace(prefix + preUSER + "fullname", user.fullName()); - else if (mValue.tqcontains(prefix + preUSER + "homedir")) - mValue = mValue.tqreplace(prefix + preUSER + "homedir", user.homeDir()); + if (mValue.contains(prefix + preUSER + "loginname")) + mValue = mValue.replace(prefix + preUSER + "loginname", user.loginName()); + else if (mValue.contains(prefix + preUSER + "fullname")) + mValue = mValue.replace(prefix + preUSER + "fullname", user.fullName()); + else if (mValue.contains(prefix + preUSER + "homedir")) + mValue = mValue.replace(prefix + preUSER + "homedir", user.homeDir()); } @@ -80,7 +80,7 @@ void MagicLabel::getCommandOutput() void MagicLabel::receivedStdout(KProcess *proc, char *buffer, int buflen) { TQString buf = TQString::tqfromLatin1(buffer, buflen); - mValue += buf.tqreplace("\n", ""); + mValue += buf.replace("\n", ""); } diff --git a/src/thememoodin.cpp b/src/thememoodin.cpp index bc6547e..eac1a08 100644 --- a/src/thememoodin.cpp +++ b/src/thememoodin.cpp @@ -364,7 +364,7 @@ void ThemeMoodin::slotSetPixmap(const TQString& s) if (!mEffectWidgets.count() > 0) return; - int n = statusPixmaps().tqfindIndex(s); + int n = statusPixmaps().findIndex(s); if (n == -1) return; |