summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop_x11.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-06-11 13:39:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-13 10:41:50 +0900
commitd7d6cb215181eaa02e5aea89149fc2c6d702ddc5 (patch)
tree14841da7f4dd22cf5ea437b2d7b03beefd2567ff /src/kernel/qeventloop_x11.cpp
parent5e1b31056073d2f8f72161970b5df5f81dac619a (diff)
downloadtqt-d7d6cb215181eaa02e5aea89149fc2c6d702ddc5.tar.gz
tqt-d7d6cb215181eaa02e5aea89149fc2c6d702ddc5.zip
Explicitly add 'ExcludeTimers' to 'ProcessEvent' enum
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 5e8114b6f0ce10965a69cab4a61ce369cbb21d21)
Diffstat (limited to 'src/kernel/qeventloop_x11.cpp')
-rw-r--r--src/kernel/qeventloop_x11.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/kernel/qeventloop_x11.cpp b/src/kernel/qeventloop_x11.cpp
index 1ba3b21df..163f8d771 100644
--- a/src/kernel/qeventloop_x11.cpp
+++ b/src/kernel/qeventloop_x11.cpp
@@ -206,8 +206,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
TQApplication::sendPostedEvents();
- const uint exclude_all = ExcludeSocketNotifiers | 0x08;
- // 0x08 == ExcludeTimers for X11 only
+ const uint exclude_all = ExcludeSocketNotifiers | ExcludeTimers;
if ( nevents > 0 && ( flags & exclude_all ) == exclude_all &&
( flags & WaitForMore ) ) {
return TRUE;
@@ -221,8 +220,8 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
// return the maximum time we can wait for an event.
static timeval zerotm;
timeval *tm = 0;
- if ( ! ( flags & 0x08 ) ) { // 0x08 == ExcludeTimers for X11 only
- tm = qt_wait_timer(); // wait for timer or X event
+ if ( ! ( flags & ExcludeTimers ) ) {
+ tm = qt_wait_timer(); // wait for TQt timers
if ( !canWait ) {
if ( !tm )
tm = &zerotm;
@@ -391,8 +390,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
}
// activate timers
- if ( ! ( flags & 0x08 ) ) {
- // 0x08 == ExcludeTimers for X11 only
+ if ( ! ( flags & ExcludeTimers ) ) {
nevents += activateTimers();
}