summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update Content Manipulation example codeJüri Valdmann2017-06-191-39/+25
| | | | | | | | | | | | | | | - Use the new signals and slots syntax, QStringLiteral, lambdas and nullptr. - Use tr consistently for user-visible text. - Use unprefixed CSS transform properties. - Remove the "; undefined" workaround for runJavaScript calls, which is supposed to prevent a "possible recursion loop and crash" due to QVariant conversion. However, since no callback is passed to the method, no such conversion is taking place nowadays. Task-number: QTBUG-60655 Change-Id: Iad9131a17e488bf5e6b1905483be33b562dbfc62 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
* Set WA_DeleteOnClose in contentmanipulation exampleFlorian Bruhin2017-03-281-0/+1
| | | | | | | | | | Otherwise, the MainWindow and QWebEngineView remains on the heap when closing the application. Task-number: QTBUG-59765 Change-Id: Ia643d1e919ca5f0a1d9405ba9b7ab72aabd8c051 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge branch '5.6' into devAllan Sandfeld Jensen2016-02-041-26/+0
|\ | | | | | | Change-Id: I0bb971f01ee1e02da768f336680c8ec0254ab2b0
| * Doc: update Contentmanipulation example docsLeena Miettinen2016-01-281-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Update screenshot - Remove second \brief command - Fix grammar issues - Use standard phrasing for examples - Replace \snippet commands with \quotefromfile commands. This enables documenting each line of code separately - Replace occurrences of QWebView with QWebEngineView - Replace reference to the obsolete QWebEnginePage::evaluateJavaScript method with reference to QWebEnginePage::runJavaScript() that is used in the example code - Remove snippet markers from mainwindow.h and mainwindow.cpp - Move code comment from mainwindow.cpp to the documentation to make the code leaner Change-Id: If3346810c8aef67c15c9ec7ad4469a222e636cf2 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| * rename fancybrowser to contentmanipulationJoerg Bornemann2015-12-171-0/+225
| | | | | | | | | | | The name "fancybrowser" tricks people into thinking that this is the reference browser example. But this example is a very simple browser with an additional fancy content manipulation feature. Rename this example to contentmanipulation to reflect reality. Change-Id: I200b701acdc4de1210b550b9f054753e5f1d1ea4 (cherry-pick from eb8eb72ec7e589eedd79143dc7c3fb241706f405) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Updated license headersJani Heikkinen2016-02-011-3/+13
| | | | | | | | | 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>
* rename fancybrowser to contentmanipulationJoerg Bornemann2015-11-161-0/+225
The name "fancybrowser" tricks people into thinking that this is the reference browser example. But this example is a very simple browser with an additional fancy content manipulation feature. Rename this example to contentmanipulation to reflect reality. Change-Id: I200b701acdc4de1210b550b9f054753e5f1d1ea4 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>