From a50cc3d292ae7d0867ac69515ffc6a158ef7883b Mon Sep 17 00:00:00 2001 From: samelian Date: Tue, 18 Jan 2011 12:32:26 +0000 Subject: [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 --- src/configuredialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configuredialog.cpp') 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); -- cgit v1.2.1