summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fullscreen notification popup for Widgets demobrowserSzabolcs David2015-10-305-3/+208
| | | | | Change-Id: I3afc0399e4156cd17917103face68ca1945409f9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix a typo in quicknanobrowserSzabolcs David2015-10-281-1/+1
| | | | | Change-Id: I90082e7b95f1693d107a4655324d5544b2d5d29e Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Demobrowser: fix compiler warnings due to missing Q_DECL_OVERRIDE.Michael Bruning2015-10-281-2/+2
| | | | | Change-Id: I7dbfeeb1a5ef91575d650bc10c7faf6ccb6b6c54 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fullscreen notification popups for the Quick examplesSzabolcs David2015-10-274-2/+112
| | | | | | Change-Id: If1057d74b4fa2cb98565e6a0a6f569e24b520753 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Add Full Screen setting to quicknanobrowserPeter Varga2015-10-271-1/+9
| | | | | Change-Id: I264a0317d46b79cce8481b3227307115f64520d8 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* Fix ABI breakage due to fullscreen featureAllan Sandfeld Jensen2015-10-192-9/+12
| | | | | | | | | | | We can not add a new virtual method without breaking ABI on some platforms, instead we need to use a setter. The API now uses a request object, and a separate signal for canceling, since canceling can not be rejected. Change-Id: If8069c343e86926293c30e8de179bf4e3cbd5886 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* add RequestClose web actionJoerg Bornemann2015-10-093-14/+25
| | | | | | | | | | | | | | | Web pages can set the onbeforeunload handler to let the user confirm whether to leave the page or not. Until now, only when leaving the page via a link, a confirmation was shown. Before actually closing a web page, applications can now trigger the RequestClose web action. This will give the use the chance to confirm or deny the close request. If the request is confirmed, the signal windowCloseRequested is emitted. Task-number: QTBUG-36155 Change-Id: Icc1fabc37a2ac537f674c2f00bc8966e4dc4e610 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* remove unused code from demobrowserJoerg Bornemann2015-10-091-15/+0
| | | | | | | | | | | Remove QWEBENGINEPAGE_ISMODIFIED block from demobrowser. This feature is not implemented. It is questionable whether it should be re-introduced in its old form. Checking whether the user should think twice about leaving the current page is usually implemented by the HTML page itself. Change-Id: I51544129b26f3e0c132e2c983c2ce1744cc19123 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Doc: remove doc config file from Qt WebEngineWidgets submoduleLeena Miettinen2015-10-073-15/+15
| | | | | | | | | | | | | | | | | | This helps maintaining the doc dependencies. All Qt WebEngine module docs are now generated in the /qtbase/doc/qtwebengine/ folder. Note that you must run qmake -r for the docs to be generated correctly after applying this patch. Add Qt WebEngine C++ Classes page that lists the C++ classes for the submodules. Modify snippet and example paths accordingly. Change-Id: I59431c5f766f30b59654ca4e2219b76c79137225 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Correct demobrowser target on OS XAllan Sandfeld Jensen2015-09-281-1/+1
| | | | | | | We were still using Browser as target on OS X Change-Id: I0b526ad772651a3a54913e0830fc2f92fe2648c4 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* DemoBrowser: Do not mention QtWebKit in descriptionKai Koehne2015-09-221-1/+1
| | | | | | | | | WebEngine should stand on it's own by now. It is also arguably misleading to mention the word "WebKit" so prominently. Change-Id: Ibd1c98b12f5832d047e553098d6703699acf27d8 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Emit a signal when the rendering process exits.Jake Petroules2015-09-103-0/+52
| | | | | | | | | This allows users to implement a "sad tab" feature and/or track rendering process crashes using a crash reporting service. Task-number: QTBUG-48227 Change-Id: I97ef934fe5d0912cd0f41967a39052316b3c66b0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix favicon load after authentication in browser examplePeter Varga2015-09-083-1/+95
| | | | | | | | | | | | In the widget browser example QNetworkAccessManager downloads the favicon for a webpage. In case of HTTP or proxy authentication the credentials may not be cached when QNetworkAccessManager tries to load the favicon. Therefore, store last credentials and provide it to QNetworkAccessManager when it emits authenticationRequired signal. Change-Id: I2d057bfa7291a13cec30db9debaf30382415122b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix broken signal/slot connections in browser example on OS X.Jake Petroules2015-09-072-7/+4
| | | | | Change-Id: Ic5b7e149e0ff9165a7244aab5d5249c5ca856747 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix demobrowser build on OS X.Jake Petroules2015-09-061-1/+1
| | | | | | | This is a regression introduced by 1819313. Change-Id: I552668e1812d9aa086b59cab79cb206a6f3742da Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix crash on exiting fullscreenAllan Sandfeld Jensen2015-09-062-2/+6
| | | | | | | Reuse the fullscreen view and avoid deleting it synchronously. Change-Id: I05642fb29507e6bbc6e6443c94deec35ccb83440 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Full-screen support in the demo browserAllan Sandfeld Jensen2015-09-033-0/+32
| | | | | | | Move a webpage requesting fullscreen to a fullscreen webview. Change-Id: Id333b0ffa78bebb20f1ea98f8665b819ad2fce0e Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Rename the widget browser example demobrowserAllan Sandfeld Jensen2015-09-0370-13/+12
| | | | | | | | | The browser example already uses the name demobrowser internally, this changes the external name to make it easier to refer to explicitly, and avoid users thinking fancybrowser is the better example. Change-Id: Ic093eb4881352b5f796bf565df01edb929aba39c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Fix use of empty credentials for HTTP and proxy authenticationPeter Varga2015-09-011-0/+6
| | | | | | | | | | Empty user and password fields are valid for HTTP and proxy authentication. Thus it does not mean that the authentication is cancelled. For informing the engine about the cancellation of the authentication dialog make QAuthenticator instance null. Change-Id: Iba1ce9d375b9b37c23f7a91fb583606d75d04af5 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Merge remote-tracking branch 'origin/dev' into 5.6Allan Sandfeld Jensen2015-08-257-253/+15
|\ | | | | | | Change-Id: Iee44f6f41c00838c9efe30f600200307bdef770a
| * Demo browser: add proxy supportPierre Rossi2015-08-197-253/+15
| | | | | | | | | | | | | | And remove NetworkAccessManager-related dead code. Change-Id: I6246aaaa1bbdda43ed0453e7acd0f2df33f58edd Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge branch '5.5' into 5.6Allan Sandfeld Jensen2015-08-183-32/+5
|\ \ | |/ |/| | | Change-Id: I9977663123560a22f493b8c02d02de8897b38666
| * 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>
* | make httpUserAgent setting usable after editJoerg Bornemann2015-08-112-0/+6
| | | | | | | | | | | | | | | | Do not require a re-start of the browser example to use the new setting. Change-Id: I733f6492ddc038412c99dbe9d1b3e685250ef2b6 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | add a way to set Accept-Language in browser exampleJoerg Bornemann2015-08-114-7/+47
| | | | | | | | | | Change-Id: I3d67b8ce9a51f82fe1de6fe92edd8f69fcda1a2f Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Update QtWebEngine version to 1.2Szabolcs David2015-07-304-4/+4
| | | | | | | | | | | | | | | | The revision was accidentally stepped twice. Change-Id: I5af7cba7d12be432d09cf6672dac422c72b09852 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Fix widgets plugin settingsAllan Sandfeld Jensen2015-07-202-4/+0
| | | | | | | | | | | | | | | | Connect the user setting to the webengine settings, and make it available in the demo browser Change-Id: Id4da8a4125a9f982cb687d433b6fce123e72c4c7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Log javascript console log to qInfo channelAllan Sandfeld Jensen2015-07-072-0/+18
| | | | | | | | | | | | | | | | This is a pretty useful default for an example and test browser, we only log warnings and errors though. Change-Id: Ic92175cb8c231e7ec33c4899f9fc457923f65970 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Add WebAction to QML apiAllan Sandfeld Jensen2015-07-061-7/+44
| | | | | | | | | | | | | | | | | | | | Adds WebActions matching QWebEnginePage to QQuickWebEngineView, this makes it possible to support copy/paste on OS X, and makes it possible to do rich text copy to clipboard on all platforms. Change-Id: If43c1b2e8ae0496423f830cfe6b86e0fa1b8126e Task-number: QTBUG-44289 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-291-11/+5
|\| | | | | | | | | | | | | | | Conflicts: .qmake.conf src/webenginewidgets/api/qwebenginepage.cpp Change-Id: Idb33c92bd53fab76eee8fedb542dbf5e4a10f9e6
| * 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>
* | Make QQuick contextmenu actions behave like widget counterpartsAllan Sandfeld Jensen2015-05-271-0/+1
| | | | | | | | | | | | | | | | | | Updates a two of the context menu actions so they behave like the updated actions in qtwebenginewidgets. Also improves the default label of OpenInThisWindow, since by default there are no other windows. Change-Id: Iac0dc23e8f31598296cba87f93503cefd926983f Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devPierre Rossi2015-05-1512-53/+90
|\| | | | | | | Change-Id: I1fbcd05760cb287d1d8a0fba344ec7cfe8348c7d
| * 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>
* | Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/devAllan Sandfeld Jensen2015-05-123-31/+43
|\ \
| * | Merge remote-tracking branch 'origin/5.5' into devAndras Becsi2015-05-113-31/+43
| |\| | | | | | | | | | Change-Id: I122ca8d3438333c6b41f751c47b1ce1f9a7066b9
| | * 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>
* | | Extend context menu actionsAllan Sandfeld Jensen2015-05-112-25/+11
|/ / | | | | | | | | | | | | | | Implements the several missing context menu actions for navigation and image and media handling. Change-Id: Ib8ea8311ea291fe2f98e509bc6f4034a5e0389c9 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-04-191-3/+3
|\| | | | | | | Change-Id: I78c25caf30923fc1101b137f9abc3993e3cf0600
| * 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>
* | | Add support for Shockwave Flash plugin.Zeno Albisser2015-03-301-0/+8
|/ / | | | | | | | | | | | | | | | | | | We will try to load the pepper flash plugin from the places where it is most commonly located. Alternatively the location and flash version can be passed on the command line. Change-Id: I41367586462157e722661aab3630357d6caf6a81 Reviewed-by: Michael Brüning <michael.bruning@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>