summaryrefslogtreecommitdiffstats
path: root/src/detaileddialog.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-11-06 02:10:33 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-11-06 02:10:46 +0100
commit2a7c961a223b6a2e589616de22aafef7f3c1a684 (patch)
tree37bafea9db52ab7988f7d2578e94043c8ed2e06e /src/detaileddialog.cpp
parent57d63cb6db398aa939d3173f3a6179f2e4cae696 (diff)
downloadkpowersave-2a7c961a223b6a2e589616de22aafef7f3c1a684.tar.gz
kpowersave-2a7c961a223b6a2e589616de22aafef7f3c1a684.zip
Fix improper use of TQString::ascii().
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 071d97ba8d0529d9e8bbd6cc0b4ffa54c55006db)
Diffstat (limited to 'src/detaileddialog.cpp')
-rw-r--r--src/detaileddialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/detaileddialog.cpp b/src/detaileddialog.cpp
index 52625ea..731b9dc 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);
TQString ProgressString = TQString("%1% (%2 MHz)").arg(100 - cpuInfo->cpu_throttling[i]).arg(cpuInfo->cpufreq_speed[i]);
- ProcessorPBar[i]->setFormat(i18n(ProgressString.ascii()));
+ ProcessorPBar[i]->setFormat(i18n(ProgressString.utf8()));
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.ascii()) + "\n";
+ displayValue += i18n(config->currentScheme.utf8()) + "\n";
if(config->currentScheme == config->ac_scheme)
InfoPictogram->setPixmap(SmallIcon("scheme_power", 22));
else if(config->currentScheme == config->battery_scheme)