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 38ae04d7a..bd0b253c2 100644
--- a/karm/idletimedetector.cpp
+++ b/karm/idletimedetector.cpp
@@ -67,22 +67,22 @@ void IdleTimeDetector::informOverrun(int idleSeconds)
_timer->stop();
- TQDateTime idleStart = TQDateTime::tqcurrentDateTime().addSecs(-idleSeconds);
+ TQDateTime idleStart = TQDateTime::currentDateTime().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?").tqarg(idleStartTQString),
+ " What should we do?").arg(idleStartTQString),
i18n("Revert && Stop"),
i18n("Revert && Continue"),
i18n("Continue Timing"),0,2);
- TQDateTime end = TQDateTime::tqcurrentDateTime();
+ TQDateTime end = TQDateTime::currentDateTime();
int diff = idleStart.secsTo(end)/secsPerMinute;
if (id == 0)
{
// Revert And Stop
- kdDebug(5970) << "Now it is " << TQDateTime::tqcurrentDateTime() << endl;
+ kdDebug(5970) << "Now it is " << TQDateTime::currentDateTime() << 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));