diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-18 12:32:26 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-18 12:32:26 +0000 |
commit | a50cc3d292ae7d0867ac69515ffc6a158ef7883b (patch) | |
tree | 2aa9527bb566c744ca734d0a52e228329c8abb41 /src/detaileddialog.cpp | |
parent | ce95d7052be28df7af07a659e8751b6e961f31ce (diff) | |
download | kpowersave-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/detaileddialog.cpp')
-rw-r--r-- | src/detaileddialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/detaileddialog.cpp b/src/detaileddialog.cpp index c48df79..b75fcc9 100644 --- a/src/detaileddialog.cpp +++ b/src/detaileddialog.cpp @@ -356,7 +356,7 @@ void detaileddialog::setProcessorThrottling() { // get max cpu freq and set it to the max of the progressbar ProcessorPBar[i]->setTotalSteps(100); QString ProgressString = QString("%1% (%2 MHz)").arg(100 - cpuInfo->cpu_throttling[i]).arg(cpuInfo->cpufreq_speed[i]); - ProcessorPBar[i]->setFormat(i18n(ProgressString)); + ProcessorPBar[i]->setFormat(i18n(ProgressString.ascii())); ProcessorPBar[i]->setProgress(100 - cpuInfo->cpu_throttling[i]); ProcessorPBar[i]->setEnabled(true); } else if (cpuInfo->cpufreq_speed[i] < 0) { @@ -411,7 +411,7 @@ void detaileddialog::setInfos() { if(!config->currentScheme.isEmpty()) display += i18n("Current Scheme: ") + "\n"; - displayValue += i18n(config->currentScheme) + "\n"; + displayValue += i18n(config->currentScheme.ascii()) + "\n"; if(config->currentScheme == config->ac_scheme) InfoPictogram->setPixmap(SmallIcon("scheme_power", 22)); else if(config->currentScheme == config->battery_scheme) |