From 4269f9b3db3cdcb0e7bccf12161a1426cd6654b7 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Mon, 25 Nov 2013 15:04:33 +0100 Subject: Fix the build with Qt 5.1 We are still able to build with Qt 5.1 if we disable the hardware acceleration codepaths. Change-Id: Ic748dac0a7f25bbd79f2f711a18431872cebd917 Reviewed-by: Jocelyn Turcotte --- examples/quick/quicknanobrowser/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/quick') diff --git a/examples/quick/quicknanobrowser/main.cpp b/examples/quick/quicknanobrowser/main.cpp index 6c2f91de6..0f0278c22 100644 --- a/examples/quick/quicknanobrowser/main.cpp +++ b/examples/quick/quicknanobrowser/main.cpp @@ -53,12 +53,14 @@ int main(int argc, char **argv) { Application app(argc, argv); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)) // This is currently needed by all QtWebEngine application using the HW accelerated QQuickWebView. // It enables sharing between the QOpenGLContext of all QQuickWindows of the application. // We have to do so until we expose a public API for it, or chose enable it by default in Qt 5.3.0. QOpenGLContext shareContext; shareContext.create(); QSGContext::setSharedOpenGLContext(&shareContext); +#endif ApplicationEngine appEngine; -- cgit v1.2.3