diff options
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.cpp')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index 7b57313645..d62330083e 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -553,23 +553,12 @@ void QWindowSystemInterface::flushWindowSystemEvents() QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); QWindowSystemInterfacePrivate::eventsFlushed.wait(&QWindowSystemInterfacePrivate::flushEventMutex); } else { - sendWindowSystemEventsImplementation(QEventLoop::AllEvents); + sendWindowSystemEvents(QEventLoop::AllEvents); } } bool QWindowSystemInterface::sendWindowSystemEvents(QEventLoop::ProcessEventsFlags flags) { - QCoreApplication::sendPostedEvents(); // handle gui and posted events - return sendWindowSystemEventsImplementation(flags); -} - -void QWindowSystemInterface::setSynchronousWindowsSystemEvents(bool enable) -{ - QWindowSystemInterfacePrivate::synchronousWindowsSystemEvents = enable; -} - -bool QWindowSystemInterface::sendWindowSystemEventsImplementation(QEventLoop::ProcessEventsFlags flags) -{ int nevents = 0; while (QWindowSystemInterfacePrivate::windowSystemEventsQueued()) { @@ -587,6 +576,11 @@ bool QWindowSystemInterface::sendWindowSystemEventsImplementation(QEventLoop::Pr return (nevents > 0); } +void QWindowSystemInterface::setSynchronousWindowsSystemEvents(bool enable) +{ + QWindowSystemInterfacePrivate::synchronousWindowsSystemEvents = enable; +} + int QWindowSystemInterface::windowSystemEventsQueued() { return QWindowSystemInterfacePrivate::windowSystemEventsQueued(); |