summaryrefslogtreecommitdiffstats
path: root/karm/idletimedetector.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /karm/idletimedetector.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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));