diff options
Diffstat (limited to 'src/kernel/tqeventloop.cpp')
| -rw-r--r-- | src/kernel/tqeventloop.cpp | 34 |
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 ) |
