summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* fix ambiguous key sequence in browser exampleJoerg Bornemann2015-07-141-7/+2
| | | | | | | | Ctrl-0 is used for "Reset Zoom". Only use Ctrl-1 to Ctrl-9 for switching between tabs. Change-Id: I6e8816622e200030252dad53389a874642ba9e50 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* remove QWebEngineHistoryInterface usage from browser exampleJoerg Bornemann2015-07-082-25/+3
| | | | | | | | | QWebHistoryInterface is used to implement support for keeping track of visited links. QWebEngine is already doing this internally, removing the need for a QWebEngineHistoryInterface. Change-Id: I908a81368b57a86845bc75ff75bf8eb7949ab0cc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Last minute API review cleanupPierre Rossi2015-06-121-3/+3
| | | | | | | | | The getters in QWebEngineDownloadItem were not const. The script collection in QWebEngineProfile was passed by reference, which is not idiomatic of Qt. Change-Id: I9b4218b407288b91a726a711bd2a7e1c1167d99a Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Disambiguate name of QLocalServer used in Browser example.Friedemann Kleint2015-05-201-8/+2
| | | | | | | | | | | | Append Qt version and engine name so that it does not lock out the QtWebKit based browser and allows for comparing different versions of Qt. Remove outdated section within Q_WS_QWS. Change-Id: I754db3ce78eefea88b97960af24ae628093e3c2a Task-number: QTBUG-46233 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Reintroduce private browsing mode for example browserAllan Sandfeld Jensen2015-05-1112-53/+90
| | | | | | | Uses QWebEngineProfile to support private browsing mode. Change-Id: I78fa712d2425eb2df519594ee3fa5639bbcbebf6 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Quick: Share profiles between application windowsSzabolcs David2015-05-073-31/+43
| | | | | | | | | | | | | | The applications should not create new WebEngineProfiles for each window, because the WebEngineView can not adopt content from a different profile when the target of the NewViewRequest is a new window (SHIFT+click) or a dialog. This also adds a notifier signal to the profile property in order to avoid "non-NOTIFYable" warnings. Change-Id: I235789f9bfa1a216f99592204e50266242d0ef1c Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.4' into 5.5Andras Becsi2015-04-151-3/+3
|\ | | | | | | Change-Id: I1e414bb2252ee4b2204ef50a9d122d1d1504115d
| * Update links from qt-project.org to qt.ioSergio Ahumada2015-03-061-3/+3
| | | | | | | | | | Change-Id: I0882a82457eaef37e84f81ad3bc44e1d65cec4ef Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
| * Enable building Qt WebEngine without accessiblity enabled.Stephan Binner2015-03-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds guards that for QT_NO_ACCESSIBILITY being not defined around the code that uses accessibility types. It disables the quicknanobrowser and quicktestbrowser examples which need Qt QuickControls, which has a hard dependency to accessibility being enabled. Backport of d95b9295c970401939d2779cbdc9e2a8c7965277 from 5.5 Change-Id: I2a2a0a6196fcb3baa39603d9c929183b454f39ed Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Demo browser: re-add user stylesheetsPierre Rossi2015-03-205-24/+63
| | | | | | | | | | | | | | | | | | | | | | Implemented in terms of user scripts. Considering loading from a file URL would probably require setting a different cross origin policy for the isolated world we run this in, something we don't quite have yet, it seems easier to just use an inline <style> block. Change-Id: Ia6f7fbb96b925bcc3202b510689524abd93643fc Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Support middle click navigationSzabolcs David2015-03-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | When the user does a middle click on a link which originally opens a new tab (target="_blank"), the newly created RenderView is hidden, so the new tab has no visible content. We need to unhide it explicitly. This also adds background tab support for the Quick example browsers and fixes the profile mismatching warning in the case when we adopt a new tab without WebContents. Change-Id: Ia3c2e752a4784d32133cee0ff278c2849b151582 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Set settings declaratively instead of on eventsAllan Sandfeld Jensen2015-03-161-3/+4
| | | | | | | | | | | | | | Match the changes in quicktestbrowser in how settings are set. Change-Id: I5b41de4c400c9c6802da20da4f9cc6f24f7db4da Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Promote fullscreen API to 5.5 publicSzabolcs David2015-03-091-0/+48
| | | | | | | | | | | | | | | | | | Introduce a new FullScreenRequest object as the parameter of the fullScreenRequested signal and expose the isFullScreen property as read-only. This makes the API harder to misuse. Change-Id: Ibb072ec93843e6df265bd930e8721d244bc2f4bc Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Quick: Fix handling of multiple certificate errors per requestPaulo Pinheiro2015-03-041-10/+27
| | | | | | | | | | | | | | | | | | | | | | This patch enables Quick API to handle multiple certificate errors per requests and update the example projects. Chromium 40 branch raise an certificate error for every resource loaded in a request (.js, .css, .html) instead of only one (previous behavior), so requests with more than one certificate error were automatically rejected. Change-Id: Ibaa3027cd6e7f22b5dc51dcd52f76ccf5ea162d3 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.4' into 5.5Frederik Gladhorn2015-03-031-1/+1
|\| | | | | | | Change-Id: Iffde26e99e32b2043fe54b0afc01f14c508df145
| * Replace old qt-project.org wiki with wiki.qt.ioSergio Ahumada2015-03-021-1/+1
| | | | | | | | | | Change-Id: If9f4b7bcfa4bfffffd5180600981ca0f16f6da8f Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* | Create application bundles for widget examples on OS XAndras Becsi2015-02-263-19/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not remove app_bundle from CONFIG and update the Info.plist file for the Browser example to have the correct resolution on retina displays. This patch also updates the snapshot sha1 to include localization patch and one that removes a additional duplicate lower-case header file that was causing problems during source packaging. [ChangeLog][QtWebEngineWidgets][OS X] Fix example on retina display Change-Id: I682d41ca13d33ec06837ad862924382f4236d76c Task-number: QTBUG-44633 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Move navigationHistory out of experimentalPierre Rossi2015-02-181-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an offset role to the models. Implement goBackAndForward that uses this offset. Also add a complete model, items, that includes current navigation entry (at offset 0) to allow for the Firefox-style single menu, and add that one to the nano browser example. The models are now instantiated lazily as it's unlikely the three models will be used by the same app. Change-Id: Ib551738611497c7eb9c501f045cda315968a2ada Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Update copyright headersJani Heikkinen2015-02-1657-453/+453
| | | | | | | | | | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: Ieb6bac7a1be5c25eb7cb917495b58b6a870ca6d4 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* | Improve quicknanobrowser example with new public API featuresAndras Becsi2015-02-094-1/+241
| | | | | | | | | | | | | | | | | | | | Promote WebEngineDownloadItem and WebEngine singleton to public API and add DownloadView to the browser example. This patch also adds profile support and webengine settings to quicknanobrowser. Change-Id: Ie81fb330e640fad7feec667a8af3afe67050693f Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Fix multi-tab browser quit action on OS XAndras Becsi2015-02-061-1/+1
| | | | | | | | | | | | | | | | Fix typo '=+' -> '+=', that prevented us from properly counting the open tabs on OS X. Change-Id: If6bbe8cbcf83d7ee8a4e11361a2199b51430700b Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Revive the widget Browser's DownloadManagerAndras Becsi2015-02-058-240/+151
| | | | | | | | | | | | | | | | | | This reenables the widget example Browser's download code by porting it from the QNAM-based QtWebKit API to the new download API of QtWebEngine. Change-Id: I0630c76902fb30c355c774664f0a2005fe29023c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add Qt WebEngine Quick API for allowing certificate errorsPaulo Pinheiro2015-02-021-0/+20
| | | | | | | | | | | | | | | | | | This adds API for overriding some certificate errors. Once overridden any identical error for the same hostname and certificate will use the same override. Change-Id: Idf9e968edca18751cbdab744880480750d0c1bd4 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* | Move newViewRequested to the public APISzabolcs David2015-01-236-4/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | This moves the API to public, with proper versioning, adds documentation and adjust the warning to also report an null parameter to openIn that would cause the load to fail. The experimental example code is copied from quicktestbrowser to quicknanobrowser. Change-Id: I23b06c7a5add0323d0540a783873584438d85ea8 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Clean the file structure of quicknanobrowser and quicktestbrowserJocelyn Turcotte2015-01-237-156/+43
| | | | | | | | | | | | | | | | | | - Remove the unnecessary intermediate ApplicationEngine class - Rename quickwindow.qml to BrowserWindow.qml - Move the injected Utils QObject into utils.h Change-Id: I3b0551e2bf477fc94640c71736de26c46c1ab633 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Enable building Qt WebEngine without accessiblity enabled.Michael Brüning2015-01-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds guards that for QT_NO_ACCESSIBILITY being not defined around the code that uses accessibility types. It disables the quicknanobrowser and quicktestbrowser examples which need Qt QuickControls, which has a hard dependency to accessibility being enabled. Task-number: QTBUG-43305 Change-Id: Ifa39e3ce447ebc2124f52e00b29b1d7d2231035e Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Widgets: Implement mouse lock permission APISzabolcs David2015-01-161-6/+8
| | | | | | | | | | | | | | | | | | If the user grants the permission with mouse click on the feature permission bar, the RenderWidgetHostView loses the focus but the focus is necessary for the pointer lock. Change-Id: Ifafd86b472e400c5690194dce2ea8a829a51c313 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Introduce QWebEngineProfile APIAllan Sandfeld Jensen2014-12-123-333/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces initial widgets API for the Chromium BrowserContext. Adds API for controlling cookie jar policy, user-agent string and cache and persistent data paths. Similar QML API will follow in another patch. [ChangeLog][QtWebEngineWidgets][QWebEngineProfile] New API for profiles applying to groups of QWebEnginePages. Change-Id: I3c4ef4053fde7564af29178c91a0aca8a2b61a5f Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* | Merge remote-tracking branch 'origin/5.4' into devAndras Becsi2014-12-014-2/+49
|\| | | | | | | | | | | | | | | | | Conflicts: src/core/access_token_store_qt.cpp src/core/access_token_store_qt.h src/core/content_browser_client_qt.cpp Change-Id: Id319ad0d87ce071e63d9c6c22b4fc35523ddfa74
| * Doc: Fix issues related to example docsTopi Reinio2014-11-174-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | - Add documentation for Quick Nano Browser - Add all examples to the correct group - Add instructions to run the examples - Qt WebEngine Widgets index page: Add examples section Task-number: QTBUG-42668 Change-Id: Ie60f8708336b9c147d0c22afb555fe87287deddc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* | <widgets/browser> Connect PermissionUnknown to the discard buttonSzabolcs David2014-11-202-2/+9
| | | | | | | | | | Change-Id: Ie5c216e9a07eae403082ab265ad5300d554037ec Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* | Merge remote-tracking branch 'origin/5.4' into devAllan Sandfeld Jensen2014-11-118-16/+20
|\| | | | | | | | | | | | | | | Conflicts: src/core/browser_context_qt.cpp src/webengine/api/qquickwebengineview_p.h Change-Id: I73bdec03b627b282851d7dda12006d4ab631072c
| * Fix enum names of audio/video featuresAllan Sandfeld Jensen2014-11-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The feature enum names and documentation gave the impression it could control audio and video output, while they only control input. Also removed documentation of non connected feature permissions for Notifications and GeoLocation. Change-Id: Ia35142ca691ebd6059b7472e9803fda8cbd84813 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com> Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
| * Enlarge quicknanobrowser for qt.io.Friedemann Kleint2014-11-051-2/+2
| | | | | | | | | | | | | | | | The default size causes qt.io to look bad and is too small for high resolution screens. Change-Id: Ie417dde8ab32fc4897cd60c292afdc39b9213510 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
| * Fix URLs in examples.Friedemann Kleint2014-11-045-10/+11
| | | | | | | | | | Change-Id: I528b7c4c22a1c47f54fe1b78a9d781a6af9cfc6b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * Fix spelling in browser example.Friedemann Kleint2014-11-041-1/+4
| | | | | | | | | | Change-Id: Id54fd7ca704bd9456c98765afdbaf04e3d46b33c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Implement acceptNavigationRequest for the widgets API.Andras Becsi2014-10-202-31/+7
| | | | | | | | | | | | | | | | | | This is the equivalent API for navigationRequested in QtQuick. This patch also enables and updates tests that depended on this API, and removes the ones that we will not support. Change-Id: I28970c11225420a9680fbd767880130492664179 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* | Implement programatic zooming for QtQuickPierre Rossi2014-10-131-0/+12
| | | | | | | | | | | | | | and add shortcuts in the examples (with a basic UI in the test browser) Change-Id: I237a04cf0b1fce2e0c6f8a19891ff3cb51727a40 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* | Use QUrl::fromLocalFilePierre Rossi2014-10-101-1/+1
|/ | | | | | | | so that we can open local files on the command line for quick testing. Change-Id: Ica0fd2242d90e5499c2f1550bc87362f20bf7938 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Examples: Fix warnings in webenginewidgets/browser example.Michael Brüning2014-10-064-0/+7
| | | | | | Fixing unused parameter warnings. Change-Id: Ic4b60b85f2434aa745e1aeb412984dc3f8a62820 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Examples: Replace deprecated Q_WS_MAC defines with Q_OS_OSX.Michael Brüning2014-10-063-11/+11
| | | | | Change-Id: I2d9f23a9aa8871df7b3054628a2db49ea858c522 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Various doc tweaksJocelyn Turcotte2014-09-291-3/+0
| | | | | | | | | | | | - Fix the example pages titles to match the qdocconf files - Remove information not as relevant for QtWebEngine as it was for QtWebKit - Fix the QtWebEngineWidgets snippet not to refer to webengine - Remove the dead link and the reference to Arora from QtWebEngine Change-Id: Ib3c57c8dd534330b3323c94fb2217374b3e52cf9 Reviewed-by: Andras Becsi <andras.becsi@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Disable the unified toolbar on OS X in QtWebEngineWidgets examplesJocelyn Turcotte2014-09-122-2/+0
| | | | | | | | | The unified toolbar doesn't work yet with QOpenGLWidget, which we use to render RenderWidgetHostViewQtDelegateWidget. Task-number: QTBUG-41179 Change-Id: I5b33d8c06600162974a05bff5fec6e1c7b59e939 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Fix tst_QWebEngineFrame::progressSignal API test caseSzabolcs David2014-09-092-4/+4
| | | | | | | | This test fails, because we get two loadProgress signals with the 100 value if the page load is successful. Change-Id: Idbd68c28ba81f8ff0a5b1d98aece82e7a940f1b9 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Add Qt WebEngine Widgets API for allowing certificate errorsAllan Sandfeld Jensen2014-08-292-0/+16
| | | | | | | | | | | This adds API for overriding some certificate errors. Once overridden any identical error for the same hostname and certificate will use the same override. Similar API for QtWebEngine QML should be added in a later patch. Change-Id: I144147b86d9b592e3f87346a1e48890acee0c670 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Add scrollanimator settings to example browserAllan Sandfeld Jensen2014-08-193-1/+16
| | | | | Change-Id: I7dc7261aadbbf08dbbeb1323cf46d24dc8e58e16 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Re-enable some qwebenginesetting features in browser exampleAllan Sandfeld Jensen2014-08-198-43/+24
| | | | | | | | We now have the QWebEngineSettings class and can re-enable the features that were previously disabled in the browser that depended on it. Change-Id: I525dd1a4b5c380ad4c6060f276440e069f633897 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Handle new window/tab modifiers also on normal navigationsJocelyn Turcotte2014-08-151-2/+0
| | | | | | | | | | | | | | | | | AddNewContents is only called when window.open is called from JavaScript. We also want the shift/ctrl modifiers to trigger normal links to open in the requested disposition. In this case OpenURLFromTab will pass the detected disposition and we must create a new WebContents ourselves. Use the same code path going through WebContentsAdapterClient::adoptNewWindow except that we pass a null WebContents pointer to the WebContentsAdapter constructor and let it create its own when initialized. Change-Id: I817b0e72aec12723bf92d9b7ad85c1cecbf5e408 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Opt-out of the build on platforms where we won't build successfullyJocelyn Turcotte2014-08-121-1/+3
| | | | | | | | | | | To allow the qt5.git integration, allow the build to succeed if the repository is checked out on a platform that we don't maintain. This is the initial list of platforms that we want the integration to succeed and we can add new ones once we start maintaining them. Change-Id: Idce2a84eb8d5b1ef7f14d399fe013f666b479108 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Update the library and QML version to 1.0Jocelyn Turcotte2014-08-121-1/+1
| | | | | | | | Also update all the examples to use 1.0 as 0.9 shouldn't be publically recommended. Change-Id: Ic58e35bdfd3a0f3d5201fc069b7103027ba84574 Reviewed-by: Andras Becsi <andras.becsi@digia.com>