![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
The class exposing QWebEngineScript to QML. More...
#include <qmluserscript.h>
Public Types | |
enum | InjectionPoint { DocumentCreation = QWebEngineScript::DocumentCreation , DocumentReady = QWebEngineScript::DocumentReady , Deferred = QWebEngineScript::Deferred } |
The enum exposing QWebEngineScript::InjectionPoint. More... | |
enum | ScriptWorldId { MainWorld = QWebEngineScript::MainWorld , ApplicationWorld = QWebEngineScript::ApplicationWorld , UserWorld = QWebEngineScript::UserWorld } |
The enum wrapping QWebEngineScript::ScriptWorldId. More... | |
Signals | |
void | nameChanged (const QString &name) |
The signal emitted when the script name is changed. More... | |
void | runsOnSubFramesChanged (bool runsOnSubFrames) |
The signal emitted when runsOnSubFrame property of the script is changed. More... | |
void | worldIdChanged (int worldId) |
The signal emitted when worldId property of the script is changed. More... | |
void | sourceCodeChanged (const QString &sourceCode) |
The signal emitted when source code of the script is changed. More... | |
void | injectionPointChanged (int injectionPoint) |
The signal emitted when injectionPoint property of the script is changed. More... | |
Public Member Functions | |
QmlUserScript (QObject *parent=nullptr) | |
~QmlUserScript () override | |
QWebEngineScript | webEngineScript () const |
void | setWebEngineScript (const QWebEngineScript &script) |
Properties | |
bool | null |
Checks if the UserScript is null. More... | |
QString | name |
Name of the UserScript. More... | |
bool | runsOnSubFrames |
Checks if the UserScript runs on sub frames. More... | |
int | worldId |
WorldId of the UserScript. More... | |
QString | sourceCode |
Source code of the UserScript. More... | |
InjectionPoint | injectionPoint |
Injection point of the UserScript. More... | |
The class exposing QWebEngineScript to QML.
Definition at line 29 of file qmluserscript.h.
The enum exposing QWebEngineScript::InjectionPoint.
Enumerator | |
---|---|
DocumentCreation | Represents QWebEngineScript::DocumentCreation. |
DocumentReady | Represents QWebEngineScript::DocumentReady,. |
Deferred | Represents QWebEngineScript::Deferred. |
Definition at line 60 of file qmluserscript.h.
The enum wrapping QWebEngineScript::ScriptWorldId.
Enumerator | |
---|---|
MainWorld | Represents QWebEngineScript::MainWorld. |
ApplicationWorld | Represents QWebEngineScript::ApplicationWorld. |
UserWorld | Represents QWebEngineScript::UserWorld. |
Definition at line 68 of file qmluserscript.h.
|
explicit |
Definition at line 21 of file qmluserscript.cpp.
|
override |
Definition at line 27 of file qmluserscript.cpp.
|
signal |
The signal emitted when injectionPoint property of the script is changed.
|
signal |
The signal emitted when the script name is changed.
|
signal |
The signal emitted when runsOnSubFrame property of the script is changed.
void QmlUserScript::setWebEngineScript | ( | const QWebEngineScript & | script | ) |
Definition at line 37 of file qmluserscript.cpp.
|
signal |
The signal emitted when source code of the script is changed.
QWebEngineScript QmlUserScript::webEngineScript | ( | ) | const |
Definition at line 32 of file qmluserscript.cpp.
|
signal |
The signal emitted when worldId property of the script is changed.
|
readwrite |
Injection point of the UserScript.
Definition at line 29 of file qmluserscript.h.
|
readwrite |
Name of the UserScript.
Definition at line 29 of file qmluserscript.h.
|
read |
Checks if the UserScript is null.
Definition at line 29 of file qmluserscript.h.
|
readwrite |
Checks if the UserScript runs on sub frames.
Definition at line 29 of file qmluserscript.h.
|
readwrite |
Source code of the UserScript.
Definition at line 29 of file qmluserscript.h.
|
readwrite |
WorldId of the UserScript.
Definition at line 29 of file qmluserscript.h.