summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-11-25 15:04:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-26 11:41:21 +0100
commit4269f9b3db3cdcb0e7bccf12161a1426cd6654b7 (patch)
tree67794dee463fb9b452790c84cc7da98437e62c05 /lib
parent29449a60a45d2ddf28d0d6b8f1ba051632a47b79 (diff)
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 <jocelyn.turcotte@digia.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/content_browser_client_qt.cpp4
-rw-r--r--lib/quick/plugin/experimental/experimental.pro2
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/content_browser_client_qt.cpp b/lib/content_browser_client_qt.cpp
index 68f0523cd..9bc9bfe5e 100644
--- a/lib/content_browser_client_qt.cpp
+++ b/lib/content_browser_client_qt.cpp
@@ -59,7 +59,9 @@
#include "web_contents_view_qt.h"
#include <QGuiApplication>
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
#include <QtQuick/private/qsgcontext_p.h>
+#endif
#include <qpa/qplatformnativeinterface.h>
namespace {
@@ -254,10 +256,12 @@ private:
void ShareGroupQtQuick::AboutToAddFirstContext()
{
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
// This currently has to be setup by ::main in all applications using QQuickWebEngineView with delegated rendering.
QOpenGLContext *shareContext = QSGContext::sharedOpenGLContext();
Q_ASSERT(shareContext);
m_shareContextQtQuick = make_scoped_refptr(new QtShareGLContext(shareContext));
+#endif
}
content::WebContentsViewPort* ContentBrowserClientQt::OverrideCreateWebContentsView(content::WebContents* web_contents,
diff --git a/lib/quick/plugin/experimental/experimental.pro b/lib/quick/plugin/experimental/experimental.pro
index 7ccfdaa76..ad2e0b8a3 100644
--- a/lib/quick/plugin/experimental/experimental.pro
+++ b/lib/quick/plugin/experimental/experimental.pro
@@ -6,6 +6,8 @@ IMPORT_VERSION = 1.0
QT += webengine qml quick
QT_PRIVATE += webengine-private qml-private quick-private gui-private core-private
+qtHaveModule(v8): QT_PRIVATE += v8-private
+
INCLUDEPATH += $$QTWEBENGINE_ROOT/lib $$QTWEBENGINE_ROOT/lib/quick
SOURCES = plugin.cpp