summaryrefslogtreecommitdiffstats
path: root/examples/webview/minibrowser/minibrowser.pro
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@theqtcompany.com>2015-06-25 17:32:49 +0200
committerChristian Stromme <christian.stromme@theqtcompany.com>2015-08-10 12:47:58 +0000
commit119db3c806220038ba3a10bc9dc0b4afb1e3bfbf (patch)
treeb1d7cb94e31b134180155135038283e2a848ee10 /examples/webview/minibrowser/minibrowser.pro
parentf63b87473d78511a4433db06d3f12dc061670990 (diff)
Add initialize function
The initialization function will set-up any platform specific requirements needed to display the WebView correctly. Initially we tried to avoid this, as it's not a very nice approach, and it was only needed when QtWebEngine back-end was the used (see: QtWebEngine::initialize()). Since we now require special set-up for OS X as well, it has become unreasonable to expect that the user should implement this logic in their application and that it's more convenient if we provide a uniform solution to make the WebView work on all platforms. The implication of this change, is that we now actually expose a C++ API and will therefore need to export the module again (making it a non-internal module). Change-Id: I87678db7cd50b25465bcf623c008f04a4cffd7df Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'examples/webview/minibrowser/minibrowser.pro')
-rw-r--r--examples/webview/minibrowser/minibrowser.pro7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/webview/minibrowser/minibrowser.pro b/examples/webview/minibrowser/minibrowser.pro
index a95b6d4..c7ffb31 100644
--- a/examples/webview/minibrowser/minibrowser.pro
+++ b/examples/webview/minibrowser/minibrowser.pro
@@ -1,11 +1,6 @@
TEMPLATE = app
-QT += qml quick
-
-!osx:qtHaveModule(webengine) {
- QT += webengine
- DEFINES += QT_WEBVIEW_WEBENGINE_BACKEND
-}
+QT += qml quick webview
SOURCES += main.cpp