summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqeventloop.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-08 19:38:03 +0900
commit7d612f7c91d55501276a385a30dbadb121e7bd9f (patch)
tree4c6f1546e16db32779dfbf5c9e107b938faee6bb /src/kernel/tqeventloop.cpp
parent5a863a8932d14b99c5f838c4efa1618070d71b29 (diff)
downloadtqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.tar.gz
tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.zip
Replace TRUE/FALSE with boolean values true/false - part 8HEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/tqeventloop.cpp')
-rw-r--r--src/kernel/tqeventloop.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kernel/tqeventloop.cpp b/src/kernel/tqeventloop.cpp
index 6d6c6c5c2..9b3d3cb2b 100644
--- a/src/kernel/tqeventloop.cpp
+++ b/src/kernel/tqeventloop.cpp
@@ -176,9 +176,9 @@ int TQEventLoop::exec()
// cleanup
d->looplevel = 0;
- d->quitnow = FALSE;
- d->exitloop = FALSE;
- d->shortcut = FALSE;
+ d->quitnow = false;
+ d->exitloop = false;
+ d->shortcut = false;
// don't reset quitcode!
return d->quitcode;
@@ -205,9 +205,9 @@ void TQEventLoop::exit( int retcode )
if ( d->quitnow ) // preserve existing quitcode
return;
d->quitcode = retcode;
- d->quitnow = TRUE;
- d->exitloop = TRUE;
- d->shortcut = TRUE;
+ d->quitnow = true;
+ d->exitloop = true;
+ d->shortcut = true;
}
@@ -220,8 +220,8 @@ int TQEventLoop::enterLoop()
{
// save the current exitloop state
bool old_exitloop = d->exitloop;
- d->exitloop = FALSE;
- d->shortcut = FALSE;
+ d->exitloop = false;
+ d->shortcut = false;
d->looplevel++;
while ( ! d->exitloop ) {
@@ -229,15 +229,15 @@ int TQEventLoop::enterLoop()
}
d->looplevel--;
- // restore the exitloop state, but if quitnow is TRUE, we need to keep
+ // restore the exitloop state, but if quitnow is true, we need to keep
// exitloop set so that all other event loops drop out.
d->exitloop = old_exitloop || d->quitnow;
d->shortcut = d->quitnow;
if ( d->looplevel < 1 ) {
- d->quitnow = FALSE;
- d->exitloop = FALSE;
- d->shortcut = FALSE;
+ d->quitnow = false;
+ d->exitloop = false;
+ d->shortcut = false;
emit tqApp->aboutToQuit();
// send deferred deletes
@@ -254,8 +254,8 @@ int TQEventLoop::enterLoop()
*/
void TQEventLoop::exitLoop()
{
- d->exitloop = TRUE;
- d->shortcut = TRUE;
+ d->exitloop = true;
+ d->shortcut = true;
}
/*! \fn void TQEventLoop::loopLevel() const
@@ -323,15 +323,15 @@ void TQEventLoop::processEvents( ProcessEventsFlags flags, int maxTime )
NOTE: This function will not process events continuously; it
returns after all available events are processed.
- This function returns TRUE if an event was processed; otherwise it
- returns FALSE.
+ This function returns true if an event was processed; otherwise it
+ returns false.
\sa ProcessEvents hasPendingEvents()
*/
/*! \fn bool TQEventLoop::hasPendingEvents() const
- Returns TRUE if there is an event waiting, otherwise it returns FALSE.
+ Returns true if there is an event waiting, otherwise it returns false.
*/
/*! \fn void TQEventLoop::registerSocketNotifier( TQSocketNotifier *notifier )