summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqtimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqtimer.cpp')
-rw-r--r--src/kernel/tqtimer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/tqtimer.cpp b/src/kernel/tqtimer.cpp
index 84803f1b5..1244a4690 100644
--- a/src/kernel/tqtimer.cpp
+++ b/src/kernel/tqtimer.cpp
@@ -63,7 +63,7 @@
\code
TQTimer *timer = new TQTimer( myObject );
connect( timer, TQ_SIGNAL(timeout()), myObject, TQ_SLOT(timerDone()) );
- timer->start( 2000, TRUE ); // 2 seconds single-shot timer
+ timer->start( 2000, true ); // 2 seconds single-shot timer
\endcode
You can also use the static singleShot() function to create a
@@ -78,7 +78,7 @@
\code
TQTimer *t = new TQTimer( myObject );
connect( t, TQ_SIGNAL(timeout()), TQ_SLOT(processOneThing()) );
- t->start( 0, FALSE );
+ t->start( 0, false );
\endcode
myObject->processOneThing() will be called repeatedly and should
@@ -140,8 +140,8 @@ TQTimer::~TQTimer()
/*!
\fn bool TQTimer::isActive() const
- Returns TRUE if the timer is running (pending); otherwise returns
- FALSE.
+ Returns true if the timer is running (pending); otherwise returns
+ false.
*/
/*!
@@ -156,7 +156,7 @@ TQTimer::~TQTimer()
Starts the timer with a \a msec milliseconds timeout, and returns
the ID of the timer, or zero when starting the timer failed.
- If \a sshot is TRUE, the timer will be activated only once;
+ If \a sshot is true, the timer will be activated only once;
otherwise it will continue until it is stopped.
Any pending timer will be stopped.
@@ -216,11 +216,11 @@ void TQTimer::stop()
bool TQTimer::event( TQEvent *e )
{
if ( e->type() != TQEvent::Timer ) // ignore all other events
- return FALSE;
+ return false;
if ( single ) // stop single shot timer
stop();
emit timeout(); // emit timeout signal
- return TRUE;
+ return true;
}
@@ -235,7 +235,7 @@ static TQObjectList *sst_list = 0; // list of single shot timers
static void sst_cleanup()
{
if ( sst_list ) {
- sst_list->setAutoDelete( TRUE );
+ sst_list->setAutoDelete( true );
delete sst_list;
sst_list = 0;
}
@@ -289,7 +289,7 @@ bool TQSingleShotTimer::event( TQEvent * )
signal.activate(); // emit the signal
signal.disconnect( 0, 0 );
timerId = 0; // mark as inactive
- return TRUE;
+ return true;
}