From 26e75b0e33d4480c891b669c34907ce3c0e7b5df Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Date: Fri, 29 Mar 2019 09:30:58 +0100 Subject: 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 --- src/plugins/platforms/webgl/qwebglintegration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.3