Pass process event flags to QEventDispatcherWin32.

to enable it to use QWindowSystemInterface::sendWindowsEvents.
bb10
Friedemann Kleint 2011-06-23 14:47:26 +02:00
parent ce4d3435d7
commit 90ac74c771
2 changed files with 3 additions and 3 deletions

View File

@ -643,7 +643,7 @@ QEventDispatcherWin32::~QEventDispatcherWin32()
{
}
bool QEventDispatcherWin32::dispatchGuiEvents()
bool QEventDispatcherWin32::dispatchGuiEvents(QEventLoop::ProcessEventsFlags)
{
return false;
}
@ -750,7 +750,7 @@ bool QEventDispatcherWin32::processEvents(QEventLoop::ProcessEventsFlags flags)
if (!filterEvent(&msg)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
dispatchGuiEvents();
dispatchGuiEvents(flags);
}
} else if (waitRet >= WAIT_OBJECT_0 && waitRet < WAIT_OBJECT_0 + nCount) {
d->activateEventNotifier(d->winEventNotifierList.at(waitRet - WAIT_OBJECT_0));

View File

@ -104,7 +104,7 @@ public:
protected:
QEventDispatcherWin32(QEventDispatcherWin32Private &dd, QObject *parent = 0);
virtual bool dispatchGuiEvents();
virtual bool dispatchGuiEvents(QEventLoop::ProcessEventsFlags flags);
private:
friend LRESULT QT_WIN_CALLBACK qt_internal_proc(HWND hwnd, UINT message, WPARAM wp, LPARAM lp);