summaryrefslogtreecommitdiffstats
path: root/src/detaileddialog.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-11-06 02:00:22 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-11-06 02:03:44 +0100
commit975e0485e3899f5415c94fa8e322b1a8eeae7367 (patch)
tree72afbb5a92f9ab6a3c42083374a021ffdf663c25 /src/detaileddialog.cpp
parent9e3d90ed9964b5dce20a00b73320b3dc9a804692 (diff)
downloadtdepowersave-975e0485e3899f5415c94fa8e322b1a8eeae7367.tar.gz
tdepowersave-975e0485e3899f5415c94fa8e322b1a8eeae7367.zip
Fix improper use of TQString::ascii().
This resolves issue #4. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1ae603d7a9e7029f6918927738e44f4488d3f4ad)
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 6a24349..76340b5 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)