diff options
Diffstat (limited to 'src/detaileddialog.cpp')
-rw-r--r-- | src/detaileddialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/detaileddialog.cpp b/src/detaileddialog.cpp index 9f9b0a2..a8cc129 100644 --- a/src/detaileddialog.cpp +++ b/src/detaileddialog.cpp @@ -78,9 +78,9 @@ detaileddialog::detaileddialog( HardwareInfo *_hwinfo, TQPixmap *_pixmap, Settin if ((primaryBatteries->getNumBatteries() > 1) && (i == 0)) Label->setText( i18n( "Total:" )); else if ((primaryBatteries->getNumBatteries() > 1) && (i > 0)) - Label->setText( i18n( "Battery %1" ).tqarg(i)); + Label->setText( i18n( "Battery %1" ).arg(i)); else - Label->setText( i18n( "Battery %1" ).tqarg(i + 1)); + Label->setText( i18n( "Battery %1" ).arg(i + 1)); BatteryGridLayout->addWidget( Label, i , 0); @@ -111,7 +111,7 @@ detaileddialog::detaileddialog( HardwareInfo *_hwinfo, TQPixmap *_pixmap, Settin for (int i = 0; i < numOfCPUs; i++) { TQLabel *Label = new TQLabel(ProcessorFrame, "ProcessorLabel"); - Label->setText( i18n( "Processor %1" ).tqarg(i + 1)); + Label->setText( i18n( "Processor %1" ).arg(i + 1)); ProcessorGridLayout->addWidget( Label, i , 0); KProgress *CPUPBar = new KProgress(ProcessorFrame, "ProcessorPBar"); @@ -242,10 +242,10 @@ void detaileddialog::setBattery() { // this should fix apm, where we have no time info if charging BatteryPBar[i]->setFormat("%p% " + i18n("charged")); } else if (_c_state == CHARGING) { - TQString temp = i18n("%1:%2 h until charged").tqarg(hours).tqarg(minutes); + TQString temp = i18n("%1:%2 h until charged").arg(hours).arg(minutes); BatteryPBar[i]->setFormat(temp); } else if (_c_state == DISCHARGING) { - TQString temp = i18n("%1:%2 h remaining").tqarg(hours).tqarg(minutes); + TQString temp = i18n("%1:%2 h remaining").arg(hours).arg(minutes); BatteryPBar[i]->setFormat(temp); } else { @@ -355,7 +355,7 @@ void detaileddialog::setProcessorThrottling() { if (throttling && cpuInfo->cpufreq_speed[i] > 0 && cpuInfo->cpu_throttling[i] >= 0) { // get max cpu freq and set it to the max of the progressbar ProcessorPBar[i]->setTotalSteps(100); - TQString ProgressString = TQString("%1% (%2 MHz)").tqarg(100 - cpuInfo->cpu_throttling[i]).tqarg(cpuInfo->cpufreq_speed[i]); + 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]->setProgress(100 - cpuInfo->cpu_throttling[i]); ProcessorPBar[i]->setEnabled(true); |