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 | fe9b5d95c9a717fea16685ed7c175e1659d7127c (patch) | |
tree | d25f548cddafc13b0336fd1a900ce01a62c4c88c /src/kpowersave.cpp | |
parent | 3cdd44798b7565639ca08dc051fbe21e41d546fa (diff) | |
download | kpowersave-fe9b5d95c9a717fea16685ed7c175e1659d7127c.tar.gz kpowersave-fe9b5d95c9a717fea16685ed7c175e1659d7127c.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kpowersave.cpp')
-rw-r--r-- | src/kpowersave.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kpowersave.cpp b/src/kpowersave.cpp index 8e1e27b..1d42505 100644 --- a/src/kpowersave.cpp +++ b/src/kpowersave.cpp @@ -388,7 +388,7 @@ void kpowersave::drawIcon(){ int x, y; countWhiteIconPixel = 0; - if((pixmap_name.tqcontains("laptopbattery") || pixmap_name.tqcontains("charge")) && + if((pixmap_name.contains("laptopbattery") || pixmap_name.contains("charge")) && countWhiteIconPixel == 0) { for (x = 0; x < w; x++) for (y = 0; y < h; y++) @@ -2148,9 +2148,9 @@ void kpowersave::handleACStatusChange ( bool acstate , bool notifyEvent ) { // handle switch to AC/battery default scheme if (acstate) { - index = settings->schemes.tqfindIndex(settings->ac_scheme); + index = settings->schemes.findIndex(settings->ac_scheme); } else { - index = settings->schemes.tqfindIndex(settings->battery_scheme); + index = settings->schemes.findIndex(settings->battery_scheme); } if (index != -1) @@ -2580,7 +2580,7 @@ bool kpowersave::do_setScheme( TQString /*_scheme*/ ) { kdDebugFuncIn(trace); /* int index; - index = settings->schemes.tqfindIndex(_scheme); + index = settings->schemes.findIndex(_scheme); if (index != -1) { do_setActiveScheme(index); |