summaryrefslogtreecommitdiffstats
path: root/src/kpowersave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kpowersave.cpp')
-rw-r--r--src/kpowersave.cpp8
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);