summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebenginescript.h
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup qwebenginescript and qwebenginescriptcollection apiMichal Klocek2020-09-281-3/+1
| | | | | | | | | | | | | | | | | | This patch cleans up script and collection apis: * do not allocate user_script on heap, there is no need for that. * remove isNull(), which was used by collection.findScript(name) * remove collection.size(), there is already collection.count() * remove collection.findScript(name), user can use findScripts(name) which returns list of scripts or empty list if not found * collection.findScripts(name) is simply collection.find(name) [ChangeLog] Removed QWebEngineScriptCollection::findScript(name), use QWebEngineScriptCollection::find(name) instead. Change-Id: Iecf8f1d7c26275b9ce3a1ea97cf4bd74b17f681e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Reuse qwebenginescript in qmlMichal Klocek2020-09-241-4/+21
| | | | | | | | | | | | | | | | | Reuse core class and adopt api: * add missing setUrlSource to c++ class * fix typing for setRunsOnSubFrames * remove all invokable from setters in qml, we use properties for that anyway. * remove invokable toString , since we have debug stream operator in c++ [ChangeLog] In qml websetttings.runOnSubframes is now websettings.runsOnSubFrames Change-Id: Iba822a7aa6a59940484c972726d710a1b66cb20d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Move to qwebenginescript to coreMichal Klocek2020-09-221-0/+113
Just a move of qwebenginescript from widgets to core. [ChangleLog] QWebEngineScirpt is now in QtWebEngineCore Change-Id: I45380377579283e27c86bb05981b227559b9630b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>