diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/datechecker.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 '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(); |