From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/datechecker.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'korganizer/datechecker.cpp') diff --git a/korganizer/datechecker.cpp b/korganizer/datechecker.cpp index 43654983b..c0ce30eb6 100644 --- a/korganizer/datechecker.cpp +++ b/korganizer/datechecker.cpp @@ -23,7 +23,7 @@ without including the source code for Qt in the source distribution. */ -#include +#include #include #include @@ -31,8 +31,8 @@ #include "datechecker.h" -DateChecker::DateChecker( QObject *parent, const char *name ) - : QObject( parent, name ), mUpdateTimer( 0 ) +DateChecker::DateChecker( TQObject *parent, const char *name ) + : TQObject( parent, name ), mUpdateTimer( 0 ) { enableRollover( FollowMonth ); } @@ -54,19 +54,19 @@ void DateChecker::enableRollover( RolloverType r ) case FollowDay: case FollowMonth: if ( !mUpdateTimer ) { - mUpdateTimer = new QTimer( this, "mUpdateTimer" ); - connect( mUpdateTimer, SIGNAL( timeout() ), - SLOT( possiblyPastMidnight() ) ); + mUpdateTimer = new TQTimer( this, "mUpdateTimer" ); + connect( mUpdateTimer, TQT_SIGNAL( timeout() ), + TQT_SLOT( possiblyPastMidnight() ) ); } mUpdateTimer->start( 0, true ); - mLastDayChecked = QDate::currentDate(); + mLastDayChecked = TQDate::currentDate(); } mUpdateRollover = r; } void DateChecker::passedMidnight() { - QDate today = QDate::currentDate(); + TQDate today = TQDate::currentDate(); if ( today.month() != mLastDayChecked.month() ) { if ( mUpdateRollover == FollowMonth ) { @@ -78,15 +78,15 @@ void DateChecker::passedMidnight() void DateChecker::possiblyPastMidnight() { - if ( mLastDayChecked != QDate::currentDate() ) { + if ( mLastDayChecked != TQDate::currentDate() ) { passedMidnight(); - mLastDayChecked = QDate::currentDate(); + mLastDayChecked = TQDate::currentDate(); } // Set the timer to go off 1 second after midnight // or after 8 minutes, whichever comes first. if ( mUpdateTimer ) { - QTime now = QTime::currentTime(); - QTime midnight = QTime( 23, 59, 59 ); + TQTime now = TQTime::currentTime(); + TQTime midnight = TQTime( 23, 59, 59 ); int msecsWait = QMIN( 480000, now.msecsTo( midnight ) + 2000 ); mUpdateTimer->stop(); -- cgit v1.2.1