Bring QWindowPrivate::deliverUpdateRequest() back temporarily

QtWayland is using that now.

This change partly reverts commit bff59f87ba.

Task-number: QTBUG-67480
Change-Id: I36b75555baef220c80cf103226f5b8108d7a352c
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
Liang Qi 2018-04-04 13:52:09 +02:00
parent 84cc8d0bad
commit 6ada4155af
2 changed files with 8 additions and 0 deletions

View File

@ -2358,6 +2358,12 @@ bool QWindow::event(QEvent *ev)
return true;
}
void QWindowPrivate::deliverUpdateRequest()
{
if (platformWindow)
platformWindow->deliverUpdateRequest();
}
/*!
Schedules a QEvent::UpdateRequest event to be delivered to this window.

View File

@ -124,6 +124,8 @@ public:
bool applyCursor();
#endif
void deliverUpdateRequest();
QPoint globalPosition() const;
QWindow *topLevelWindow() const;