diff options
Diffstat (limited to 'korganizer/datechecker.cpp')
-rw-r--r-- | korganizer/datechecker.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 <qtimer.h> +#include <tqtimer.h> #include <kdebug.h> #include <klocale.h> @@ -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(); |