// return the maximum time we can wait for an event.
timeval *tm = Q_NULLPTR;
timeval wait_tm = { 0l, 0l };
- if (!(flags & QEventLoop::X11ExcludeTimers)) {
- if (d->timerList.timerWait(wait_tm))
- tm = &wait_tm;
- }
+ if (d->timerList.timerWait(wait_tm))
+ tm = &wait_tm;
if (!canWait) {
if (!tm)
int nevents = d->doSelect(flags, tm);
// activate timers
- if (! (flags & QEventLoop::X11ExcludeTimers)) {
- nevents += activateTimers();
- }
+ nevents += activateTimers();
+
return (nevents > 0);
}
\value WaitForMoreEvents Wait for events if no pending events are
available.
- \omitvalue X11ExcludeTimers
- \omitvalue ExcludeUserInput
- \omitvalue WaitForMore
- \omitvalue EventLoopExec
-
\sa processEvents()
*/
QT_TRY {
while (!d->exit)
- processEvents(flags | WaitForMoreEvents | EventLoopExec);
+ processEvents(flags | WaitForMoreEvents);
} QT_CATCH (...) {
qWarning("Qt has caught an exception thrown from an event handler. Throwing\n"
"exceptions from an event handler is not supported in Qt. You must\n"
AllEvents = 0x00,
ExcludeUserInputEvents = 0x01,
ExcludeSocketNotifiers = 0x02,
- WaitForMoreEvents = 0x04,
- X11ExcludeTimers = 0x08,
- EventLoopExec = 0x10
+ WaitForMoreEvents = 0x04
};
Q_DECLARE_FLAGS(ProcessEventsFlags, ProcessEventsFlag)
out:
if (!d->interrupt) {
- const uint exclude_all =
- QEventLoop::ExcludeSocketNotifiers | QEventLoop::X11ExcludeTimers | QEventLoop::WaitForMoreEvents;
+ const uint exclude_all = QEventLoop::ExcludeSocketNotifiers | QEventLoop::WaitForMoreEvents;
if (nevents > 0 && ((uint)flags & exclude_all) == exclude_all) {
QApplication::sendPostedEvents();
return nevents > 0;