From 96425960f9d57387c33e3ba50785aaa81255bc98 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Fri, 28 Mar 2014 17:14:30 +0100 Subject: Render the widgets view using the scene graph into a QOpenGLWidget This means that widgets application now need to setup the GL context sharing as well. QWebEngineWidgets::initialize() must be called, which has the same effect as QWebEngine::initialize(). The QtWebEngineWidgets now depends on the QtWebEngine module to make this happen. Since QOpenGLWidget is only available in Qt 5.3, this patch also disables the webenginewidgets module completely when building using Qt 5.2. Change-Id: I0e99a779d1eb080f2ccf5a338ff0763ad64e6eba Reviewed-by: Simon Hausmann --- .../qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/auto/widgets/qwebenginehistoryinterface') diff --git a/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp b/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp index 60c54e93e..180a0f2fe 100644 --- a/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp +++ b/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp @@ -34,6 +34,7 @@ public: virtual ~tst_QWebEngineHistoryInterface(); public Q_SLOTS: + void initTestCase(); void init(); void cleanup(); @@ -56,6 +57,11 @@ tst_QWebEngineHistoryInterface::~tst_QWebEngineHistoryInterface() { } +void tst_QWebEngineHistoryInterface::initTestCase() +{ + QWebEngineWidgets::initialize(); +} + void tst_QWebEngineHistoryInterface::init() { m_view = new QWebEngineView(); -- cgit v1.2.3