![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
The class exposing Action API to QML. More...
#include <qmlaction.h>
Signals | |
void | triggered () |
This signal is emitted when the action is triggered. More... | |
Public Member Functions | |
QmlAction (QAction *action, QmlEngine *engine, QObject *parent=nullptr) | |
void | setProperties (const QVariantMap &map) |
Q_INVOKABLE void | update (const QVariantMap &map) |
Updates the properties of the action. More... | |
The class exposing Action API to QML.
Definition at line 29 of file qmlaction.h.
|
explicit |
Definition at line 25 of file qmlaction.cpp.
void QmlAction::setProperties | ( | const QVariantMap & | map | ) |
Definition at line 34 of file qmlaction.cpp.
|
signal |
This signal is emitted when the action is triggered.
void QmlAction::update | ( | const QVariantMap & | map | ) |
Updates the properties of the action.
A | JavaScript object containing the updated properties of the action. |
Definition at line 54 of file qmlaction.cpp.