macOS: Add logging when delivering update requests
Change-Id: I2144e39c69fe79c0a31d5fb708abe4b20169d27a Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>bb10
parent
ab9b026d27
commit
8e2a970566
|
|
@ -125,6 +125,8 @@ public:
|
|||
bool isForeignWindow() const override;
|
||||
|
||||
void requestUpdate() override;
|
||||
void deliverUpdateRequest() override;
|
||||
|
||||
void requestActivateWindow() override;
|
||||
|
||||
WId winId() const override;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue