From e1cddce9af7ab2eeaa5613e91e6899128b1ce5ab Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:37:31 -0600 Subject: Remove additional unneeded tq method conversions --- src/knutdock.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/knutdock.cpp') diff --git a/src/knutdock.cpp b/src/knutdock.cpp index 61f67d8..bb1f6e1 100755 --- a/src/knutdock.cpp +++ b/src/knutdock.cpp @@ -195,7 +195,7 @@ void KNutDock::repaintDock (const bool always) { TQPainter paint; - if (m_activeUpsInfo->upsNet == 0) { tqrepaint(); return;} + if (m_activeUpsInfo->upsNet == 0) { repaint(); return;} m_dataOkOld=m_dataOk; @@ -230,7 +230,7 @@ void KNutDock::repaintDock (const bool always) { // **********RUNTIME*********** myStatusBatValue = myStatusValue & KNutNet::OB; // OB = UPS runs on battery if ((myRuntimeValue != m_runtimeValue) || (myStatusBatValue != m_statusBatValue)) { - // when runtime is changed or flags OB is changed we must tqrepaint icons + // when runtime is changed or flags OB is changed we must repaint icons // when OB is changed same items in icon will change color m_runtimeValue = myRuntimeValue; // runtime is old value of runtime, one is defined like global value of class m_statusBatValue = myStatusBatValue; @@ -390,7 +390,7 @@ void KNutDock::repaintDock (const bool always) { } } } - tqrepaint(); + repaint(); } @@ -483,17 +483,17 @@ void KNutDock::toolTip (int runtime, int status, int batteryCharge, int upsLoad if (m_toolTipFlags & TTRun) { if (runtime != knc::numberVarError) - text += "\n" + i18n("Runtime") + i18n(" : %1:%2 min").tqarg(min).tqarg(sec); + text += "\n" + i18n("Runtime") + i18n(" : %1:%2 min").arg(min).arg(sec); } if (m_toolTipFlags & TTCharge) { if (batteryCharge != knc::numberVarError) - text += "\n" + i18n("Battery Charge") + TQString(" : %1 %").tqarg(batteryCharge); + text += "\n" + i18n("Battery Charge") + TQString(" : %1 %").arg(batteryCharge); } if (m_toolTipFlags & TTLoad) { if (upsLoad != knc::numberVarError) - text += "\n" + i18n("UPS Load") + TQString(" : %1 %").tqarg(upsLoad); + text += "\n" + i18n("UPS Load") + TQString(" : %1 %").arg(upsLoad); } TQToolTip::remove(this); -- cgit v1.2.1