21#include <QQmlComponent>
22#include <QQmlParserStatus>
32 Q_INTERFACES(QQmlParserStatus)
163 QQmlComponent *m_popup =
nullptr;
168 void setIdentity(
const QString &
identity);
169 QString
name()
const;
170 void setName(
const QString &
name);
171 QString
title()
const;
172 void setTitle(
const QString &
title);
174 void setToolTip(
const QString &
toolTip);
175 QString
icon()
const;
176 void setIcon(
const QString &
icon);
178 void setBadgeText(
const QString &
badgeText);
179 QQmlComponent *
popup()
const;
180 void setPopup(QQmlComponent *
popup);
181 void setLocation(
const Locations &locations);
192 QString
id()
const override;
193 void setId(
const QString &
id);
194 QString
name()
const override;
200 void setPopup(QQmlComponent *popup);
208 QQmlComponent *m_popup =
nullptr;
211Q_DECLARE_OPERATORS_FOR_FLAGS(QmlBrowserAction::Locations)
The class exposing BrowserAction API to QML.
QString identity
identity for the button. This is a required property.
Location
The Location enum.
@ NavigationToolBar
to add the button in navigation tool bar
QQmlComponent * popup
the popup shown when the button is clicked. This must be a QML Window.
void badgeTextChanged(const QString &badgeText)
This signal is emitted when the badgeText property is changed.
QString title
title of the button.
void classBegin() override
QString icon
icon path of button
QString name
name of the button. This is a required property.
void identityChanged(const QString &identity)
This signal is emitted when identity property is changed.
void titleChanged(const QString &title)
This signal is emitted when title property is changed.
void toolTipChanged(const QString &toolTip)
This signal is emitted when the toolTip property is changed.
QmlBrowserActionButton * button() const
~QmlBrowserAction() override
QString toolTip
tool tip of the button.
void nameChanged(const QString &name)
This signal is emitted when name property is changed.
void iconChanged(const QString &icon)
This signal is emitted when the icon property is changed.
void locationChanged(const Locations &locations)
This signal is emitted when the locations property is changed.
QString badgeText
badge text of the button
void clicked()
This signal is emitted when the button is clicked.
void componentComplete() override
Locations location
represents locations where the button is to be added.
QmlBrowserAction(QObject *parent=nullptr)
void popupChanged(QQmlComponent *popup)
This signal is emitted when the popup property is changed.