summaryrefslogtreecommitdiffstats
path: root/karm/idletimedetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/idletimedetector.cpp')
-rw-r--r--karm/idletimedetector.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/karm/idletimedetector.cpp b/karm/idletimedetector.cpp
index bd0b253c2..38ae04d7a 100644
--- a/karm/idletimedetector.cpp
+++ b/karm/idletimedetector.cpp
@@ -67,22 +67,22 @@ void IdleTimeDetector::informOverrun(int idleSeconds)
_timer->stop();
- TQDateTime idleStart = TQDateTime::currentDateTime().addSecs(-idleSeconds);
+ TQDateTime idleStart = TQDateTime::tqcurrentDateTime().addSecs(-idleSeconds);
TQString idleStartTQString = KGlobal::locale()->formatTime(idleStart.time());
int id = TQMessageBox::warning( 0, i18n("Idle Detection"),
i18n("Desktop has been idle since %1."
- " What should we do?").arg(idleStartTQString),
+ " What should we do?").tqarg(idleStartTQString),
i18n("Revert && Stop"),
i18n("Revert && Continue"),
i18n("Continue Timing"),0,2);
- TQDateTime end = TQDateTime::currentDateTime();
+ TQDateTime end = TQDateTime::tqcurrentDateTime();
int diff = idleStart.secsTo(end)/secsPerMinute;
if (id == 0)
{
// Revert And Stop
- kdDebug(5970) << "Now it is " << TQDateTime::currentDateTime() << endl;
+ kdDebug(5970) << "Now it is " << TQDateTime::tqcurrentDateTime() << endl;
kdDebug(5970) << "Reverting timer to " << KGlobal::locale()->formatTime(idleStart.time()).ascii() << endl;
emit(extractTime(idleSeconds/60+diff)); // we need to subtract the time that has been added during idleness.
emit(stopAllTimersAt(idleStart));