summaryrefslogtreecommitdiffstats
path: root/src/configuredialog.cpp
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-18 12:32:26 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-18 12:32:26 +0000
commita50cc3d292ae7d0867ac69515ffc6a158ef7883b (patch)
tree2aa9527bb566c744ca734d0a52e228329c8abb41 /src/configuredialog.cpp
parentce95d7052be28df7af07a659e8751b6e961f31ce (diff)
downloadkpowersave-a50cc3d292ae7d0867ac69515ffc6a158ef7883b.tar.gz
kpowersave-a50cc3d292ae7d0867ac69515ffc6a158ef7883b.zip
[applications/kpowersave] make compatible with QT_NO_ASCII_CAST flag
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1215362 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/configuredialog.cpp')
-rw-r--r--src/configuredialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configuredialog.cpp b/src/configuredialog.cpp
index 196b26b..a0e45ae 100644
--- a/src/configuredialog.cpp
+++ b/src/configuredialog.cpp
@@ -146,7 +146,7 @@ void ConfigureDialog::setSchemeList(){
cB_batteryScheme->clear();
for ( QStringList::Iterator it = schemes.begin(); it != schemes.end(); ++it ) {
- QString _tmp = *it;
+ const char *_tmp = (*it).ascii();
if(_tmp == "Performance" || _tmp == i18n("Performance")) {
listBox_schemes->insertItem(SmallIcon("scheme_power", QIconSet::Automatic), i18n(_tmp));
cB_acScheme->insertItem(i18n(_tmp));
@@ -1271,7 +1271,7 @@ void ConfigureDialog::setInactivityBox(){
// actions.append("Turn Off Computer");
for ( QStringList::Iterator it = actions.begin(); it != actions.end(); ++it ) {
- cB_autoInactivity->insertItem( i18n( *it ) );
+ cB_autoInactivity->insertItem( i18n( (*it).ascii() ) );
}
kdDebugFuncOut(trace);