diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2019-03-29 09:30:58 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-03-29 08:54:06 +0000 |
commit | 26e75b0e33d4480c891b669c34907ce3c0e7b5df (patch) | |
tree | 8276e9a01c45bcc5d296f4943ba5c5c498d0e319 | |
parent | 09f0d34c8800d1cb32bfde3c07093adbee44660b (diff) |
Fix build - screen maintenance functions moved to QWSI
This is an ammendment to 01e1df90a7debd333314720fdd5cf6cd9964d796 in
qtbase.
Stop using screenAdded/destroyScreen deprecated functions.
Task-number: QTBUG-74816
Change-Id: I6ce96e5dcd74e83560800de571d9530e4305e9ad
Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r-- | src/plugins/platforms/webgl/qwebglintegration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/webgl/qwebglintegration.cpp b/src/plugins/platforms/webgl/qwebglintegration.cpp index 08a432c..9311e30 100644 --- a/src/plugins/platforms/webgl/qwebglintegration.cpp +++ b/src/plugins/platforms/webgl/qwebglintegration.cpp @@ -111,7 +111,7 @@ void QWebGLIntegration::initialize() d->inputContext = QPlatformInputContextFactory::create(); d->screen = new QWebGLScreen; - screenAdded(d->screen, true); + QWindowSystemInterface::handleScreenAdded(d->screen, true); d->webSocketServer = new QWebGLWebSocketServer(d->wssPort); d->httpServer = new QWebGLHttpServer(d->webSocketServer, this); @@ -139,7 +139,7 @@ void QWebGLIntegration::destroy() foreach (QWindow *w, qGuiApp->topLevelWindows()) w->destroy(); - destroyScreen(d->screen); + QWindowSystemInterface::handleScreenRemoved(d->screen); d->screen = nullptr; @@ -346,7 +346,7 @@ void QWebGLIntegrationPrivate::clientConnected(QWebSocket *socket, clients.mutex.lock(); clients.list.append(client); clients.mutex.unlock(); - q->screenAdded(client.platformScreen, true); + QWindowSystemInterface::handleScreenAdded(client.platformScreen, true); connectNextClient(); } |