summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/demobrowser/browserapplication.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix license header for examplesKai Koehne2017-09-201-1/+1
| | | | | | Task-number: QTBUG-60006 Change-Id: Ie1604aed3d5a9ba566e898eae232227ba340bfaa Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Use AllowPersistentCookies as default setting in demobrowserMichal Klocek2017-06-201-1/+3
| | | | | | | | | By default we should allow persistent cookies otherwise demobrowser might give an impression that cookies are not working. Task-number: QTBUG-58675 Change-Id: I13ef2729b7f4a757a0d7e0c695dafd4e2f1f75be Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Revert "Fix flushing the cookies with demobrowser"Michal Klocek2017-06-081-9/+6
| | | | | | | | | | | Mea culpa ! This is not only not required in 5.9.1 but also does not even compile. This reverts commit dc70e81da3f7b639ace9c5cc14e1fd4eb1942e4c. Task-number: QTBUG-61299 Change-Id: I0879abe58a23588bddf9e4217899d7bfbf604438 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Fix flushing the cookies with demobrowserMichal Klocek2017-06-061-6/+9
| | | | | | | | | | | | | | | Fix destruction of browser context, which takes place on qt_call_post_routines. Unfortunately demo browser destructs its windows just before qapplication destructor runs, so there is no more main event loop running. Please note this is just a quick fix, and proper fix would require refactoring the example not to use anit-pattern of deriving from qapplication. Task-number: QTBUG-58675 Change-Id: I419a1655a70397e69fecef2ceb37cbfc7e7f5ca4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* DemoBrowser: Fix use of system proxyKai Koehne2017-03-301-1/+1
| | | | | | | | | | The example did always set an application proxy, though it was empty if no proxy was explicitly set in the system. This however blocked the use of the system settings. Task-number: QTBUG-58748 Change-Id: I50d9116e491cb7c1ab5b8fc610736d60e0bc9ea8 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
* Remove uses of QString::nullMarc Mutz2017-03-111-1/+1
| | | | | | | It's going to be deprecated. Change-Id: Iec967478785d327caa846a259fb8eeff18173429 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-05-091-9/+20
|\ | | | | | | Change-Id: I2843a633721212850db77c772caf24e0ea82b450
| * [Demobrowser] Fix command line option parsing.Alexandru Croitor2016-05-041-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing just command line options to Chromium prevents loading of the initial startup url. This happens because the startup url is overridden by the last command line argument, which happens to be a Chromium option, thus an invalid URL. Fix consists in iterating through the command line arguments, until a non-option argument is found (doesn't start with a dash), and use that as the startup URL. Change-Id: Ibe2946b25b2e023c094a85e50d2ccbd5bfce2977 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add icon property and iconChanged signal to QWebEnginePagePeter Varga2016-03-311-70/+0
| | | | | | | | | | | | | | | | | | | | | | | | The new API makes possible to access downloaded icons via QWebEnginePage. Thus the QNAM usage for downloading favicons and the corresponding workaround due to authentication are removed from the demobrowser. Change-Id: I9fdcc7ee7673f7caa239d932f20a51c74b24763f Task-number: QTBUG-51179 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Add settings for FaviconManager's icon download modesPeter Varga2016-03-251-0/+15
| | | | | | | | | | | | Change-Id: I8e4b11089de29623ed39ec6b13fe30be734baa3e Task-number: QTBUG-51179 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-02-201-6/+5
|\| | | | | | | Change-Id: If884b8b8bc087a6a726476b49cdb48a0efaa173e
| * Fix removal of left-over local socket in demobrowserJoerg Bornemann2016-02-161-6/+5
| | | | | | | | | | | | | | | | Use QLocalServer::removeServer instead of QFile::remove. The socket is usually not in the current directory. Change-Id: Ie5b20b8b02ec7f3065596ebd945a6639bb65a2c0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * Make all examples BSD licensedKai Koehne2016-01-221-28/+27
| | | | | | | | | | Change-Id: I98924e5f8754b7b2ed095abf00eb73fa26399b2d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Updated license headersJani Heikkinen2016-02-011-22/+31
|/ | | | | | | | | From Qt 5.7 -> examples are lisenced under BSD license, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new BSD header Change-Id: I12d6dd8ebeddf1c39e8aed5095fd224f5e0a455f Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Fix favicon load after authentication in browser examplePeter Varga2015-09-081-0/+70
| | | | | | | | | | | | 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-071-5/+4
| | | | | Change-Id: Ic5b7e149e0ff9165a7244aab5d5249c5ca856747 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Full-screen support in the demo browserAllan Sandfeld Jensen2015-09-031-0/+2
| | | | | | | 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-031-0/+550
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>