macOS: Add logging when delivering update requests

Change-Id: I2144e39c69fe79c0a31d5fb708abe4b20169d27a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
bb10
Tor Arne Vestbø 2018-03-22 16:09:56 +01:00
parent ab9b026d27
commit 8e2a970566
3 changed files with 8 additions and 1 deletions

View File

@ -125,6 +125,8 @@ public:
bool isForeignWindow() const override;
void requestUpdate() override;
void deliverUpdateRequest() override;
void requestActivateWindow() override;
WId winId() const override;

View File

@ -1338,6 +1338,12 @@ void QCocoaWindow::requestUpdate()
[qnsview_cast(m_view) requestUpdate];
}
void QCocoaWindow::deliverUpdateRequest()
{
qCDebug(lcQpaDrawing) << "Delivering update request to" << window();
QPlatformWindow::deliverUpdateRequest();
}
void QCocoaWindow::requestActivateWindow()
{
NSWindow *window = [m_view window];

View File

@ -119,7 +119,6 @@
if (m_updateRequested) {
Q_ASSERT(windowPrivate->updateRequestPending);
qCDebug(lcQpaWindow) << "Delivering update request to" << m_platformWindow->window();
m_platformWindow->deliverUpdateRequest();
m_updateRequested = false;
} else {