summaryrefslogtreecommitdiffstats
path: root/src/kernel/qtimer.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-08 15:17:51 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-14 17:51:59 +0900
commit3a477fb70884668d163f6631a73c8ab894928bcc (patch)
tree0ac0327df978cf22b7a1f495f0649591bb39ed2a /src/kernel/qtimer.cpp
parente4085a83c143eb366d0364596297b322476cc652 (diff)
downloadtqt-r14.1.x.tar.gz
tqt-r14.1.x.zip
Replace TRUE/FALSE with boolean values true/false - part 8r14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7d612f7c91d55501276a385a30dbadb121e7bd9f)
Diffstat (limited to 'src/kernel/qtimer.cpp')
-rw-r--r--src/kernel/qtimer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/qtimer.cpp b/src/kernel/qtimer.cpp
index f7736c028..5b4a93493 100644
--- a/src/kernel/qtimer.cpp
+++ b/src/kernel/qtimer.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;
}