summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-03-22 16:09:56 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-04-17 12:55:04 +0000
commit8e2a9705669e11a1510bca37121fc27cddd13007 (patch)
tree6a82d0b68f3537e63a47b6c171ad2fa7d674468c /src
parentab9b026d2734321f1d5a06b79f97107a867687c3 (diff)
macOS: Add logging when delivering update requests
Change-Id: I2144e39c69fe79c0a31d5fb708abe4b20169d27a Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.h2
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.mm6
-rw-r--r--src/plugins/platforms/cocoa/qnsview_drawing.mm1
3 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.h b/src/plugins/platforms/cocoa/qcocoawindow.h
index 9fa8ff9336..feaade1bd6 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.h
+++ b/src/plugins/platforms/cocoa/qcocoawindow.h
@@ -125,6 +125,8 @@ public:
bool isForeignWindow() const override;
void requestUpdate() override;
+ void deliverUpdateRequest() override;
+
void requestActivateWindow() override;
WId winId() const override;
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index 8445323f19..02a87709de 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -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];
diff --git a/src/plugins/platforms/cocoa/qnsview_drawing.mm b/src/plugins/platforms/cocoa/qnsview_drawing.mm
index d2c204deb4..3b72715616 100644
--- a/src/plugins/platforms/cocoa/qnsview_drawing.mm
+++ b/src/plugins/platforms/cocoa/qnsview_drawing.mm
@@ -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 {