Falkon Develop
Cross-platform Qt-based web browser
QmlAction Class Reference

The class exposing Action API to QML. More...

#include <qmlaction.h>

Inheritance diagram for QmlAction:

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...
 

Detailed Description

The class exposing Action API to QML.

Definition at line 29 of file qmlaction.h.

Constructor & Destructor Documentation

◆ QmlAction()

QmlAction::QmlAction ( QAction *  action,
QmlEngine engine,
QObject *  parent = nullptr 
)
explicit

Definition at line 25 of file qmlaction.cpp.

Member Function Documentation

◆ setProperties()

void QmlAction::setProperties ( const QVariantMap &  map)

Definition at line 34 of file qmlaction.cpp.

◆ triggered

void QmlAction::triggered ( )
signal

This signal is emitted when the action is triggered.

◆ update()

void QmlAction::update ( const QVariantMap &  map)

Updates the properties of the action.

Parameters
AJavaScript object containing the updated properties of the action.

Definition at line 54 of file qmlaction.cpp.


The documentation for this class was generated from the following files: