summaryrefslogtreecommitdiffstats
path: root/karm/idletimedetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/idletimedetector.cpp')
-rw-r--r--karm/idletimedetector.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/karm/idletimedetector.cpp b/karm/idletimedetector.cpp
index 878993798..b2b17a29c 100644
--- a/karm/idletimedetector.cpp
+++ b/karm/idletimedetector.cpp
@@ -1,8 +1,8 @@
#include "idletimedetector.h"
-#include <qdatetime.h>
-#include <qmessagebox.h>
-#include <qtimer.h>
+#include <tqdatetime.h>
+#include <tqmessagebox.h>
+#include <tqtimer.h>
#include <kglobal.h>
#include <klocale.h> // i18n
@@ -25,8 +25,8 @@ IdleTimeDetector::IdleTimeDetector(int maxIdle)
_idleDetectionPossible = false;
}
- _timer = new QTimer(this);
- connect(_timer, SIGNAL(timeout()), this, SLOT(check()));
+ _timer = new TQTimer(this);
+ connect(_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(check()));
#else
_idleDetectionPossible = false;
#endif // HAVE_LIBXSS
@@ -67,22 +67,22 @@ void IdleTimeDetector::informOverrun(int idleSeconds)
_timer->stop();
- QDateTime idleStart = QDateTime::currentDateTime().addSecs(-idleSeconds);
- QString idleStartQString = KGlobal::locale()->formatTime(idleStart.time());
+ TQDateTime idleStart = TQDateTime::currentDateTime().addSecs(-idleSeconds);
+ TQString idleStartQString = KGlobal::locale()->formatTime(idleStart.time());
- int id = QMessageBox::warning( 0, i18n("Idle Detection"),
+ int id = TQMessageBox::warning( 0, i18n("Idle Detection"),
i18n("Desktop has been idle since %1."
" What should we do?").arg(idleStartQString),
i18n("Revert && Stop"),
i18n("Revert && Continue"),
i18n("Continue Timing"),0,2);
- QDateTime end = QDateTime::currentDateTime();
+ TQDateTime end = TQDateTime::currentDateTime();
int diff = idleStart.secsTo(end)/secsPerMinute;
if (id == 0)
{
// Revert And Stop
- kdDebug(5970) << "Now it is " << QDateTime::currentDateTime() << 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));