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:00:22 +0100
commit1ae603d7a9e7029f6918927738e44f4488d3f4ad (patch)
tree9479399facae06f8171995c2b97992cad4c9c2c8 /src/detaileddialog.cpp
parentbf279c7e8cd09ab3aa55327314b368af589e9e19 (diff)
downloadtdepowersave-1ae603d7a9e7029f6918927738e44f4488d3f4ad.tar.gz
tdepowersave-1ae603d7a9e7029f6918927738e44f4488d3f4ad.zip
Fix improper use of TQString::ascii().
This resolves issue #4. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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)