31 explicit QmlTabs(QObject *parent =
nullptr);
47 Q_INVOKABLE
bool nextTab(
int windowId = -1);
65 Q_INVOKABLE
bool moveTab(
const QVariantMap &map);
75 Q_INVOKABLE
bool pinTab(
const QVariantMap &map);
85 Q_INVOKABLE
bool unpinTab(
const QVariantMap &map);
95 Q_INVOKABLE
bool detachTab(
const QVariantMap &map);
105 Q_INVOKABLE
bool duplicate(
const QVariantMap &map);
115 Q_INVOKABLE
bool closeTab(
const QVariantMap &map);
125 Q_INVOKABLE
bool reloadTab(
const QVariantMap &map);
135 Q_INVOKABLE
bool stopTab(
const QVariantMap &map);
145 Q_INVOKABLE
QmlTab *
get(
const QVariantMap &map)
const;
167 Q_INVOKABLE QList<QObject*>
getAll(
const QVariantMap &map = QVariantMap())
const;
180 Q_INVOKABLE QList<QObject*>
search(
const QVariantMap &map);
190 Q_INVOKABLE
bool addTab(
const QVariantMap &map);
The class exposing a browser tab to QML.
The class exposing Tabs API to QML.
Q_INVOKABLE bool unpinTab(const QVariantMap &map)
Un-pins a tab.
Q_INVOKABLE bool addTab(const QVariantMap &map)
Adds a tab.
Q_INVOKABLE bool closeTab(const QVariantMap &map)
Close a tab.
Q_INVOKABLE bool stopTab(const QVariantMap &map)
Stops a tab.
void tabInserted(const QVariantMap &map)
The signal emitted when a tab is inserted.
Q_INVOKABLE bool moveTab(const QVariantMap &map)
Moves a tab.
Q_INVOKABLE bool duplicate(const QVariantMap &map)
Duplicates a tab.
Q_INVOKABLE QList< QObject * > getAll(const QVariantMap &map=QVariantMap()) const
Gets all the tabs of a window.
Q_INVOKABLE int pinnedTabsCount(int windowId=-1) const
Get the pinned tabs count in a window.
QmlTabs(QObject *parent=nullptr)
Q_INVOKABLE bool setCurrentIndex(const QVariantMap &map)
Sets the current tab in a window.
Q_INVOKABLE bool nextTab(int windowId=-1)
Sets the next tab as current tab.
Q_INVOKABLE bool detachTab(const QVariantMap &map)
Detaches a tab.
Q_INVOKABLE bool previousTab(int windowId=-1)
Sets the previous tab as current tab.
void tabMoved(const QVariantMap &map)
The signal emitted when a tab is moved.
void changed(int windowId)
The signal emitted when tabs in the tab widget are changed.
Q_INVOKABLE bool reloadTab(const QVariantMap &map)
Reloads a tab.
Q_INVOKABLE QmlTab * get(const QVariantMap &map) const
Gets a tab.
Q_INVOKABLE bool pinTab(const QVariantMap &map)
Pins a tab.
Q_INVOKABLE int normalTabsCount(int windowId=-1) const
Get the normal tabs count in a window.
Q_INVOKABLE QList< QObject * > search(const QVariantMap &map)
Searches tabs against a criteria.
void tabRemoved(const QVariantMap &map)
The signal emitted when a tab is removed.