#include <tabmodel.h>
|
| | TabModel (BrowserWindow *window, QObject *parent=nullptr) |
| |
| QModelIndex | tabIndex (WebTab *tab) const |
| |
| WebTab * | tab (const QModelIndex &index) const |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
| Qt::DropActions | supportedDropActions () const override |
| |
| QStringList | mimeTypes () const override |
| |
| QMimeData * | mimeData (const QModelIndexList &indexes) const override |
| |
| bool | canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override |
| |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
| |
Definition at line 48 of file tabmodel.h.
◆ Roles
| Enumerator |
|---|
| WebTabRole | |
| TitleRole | |
| IconRole | |
| PinnedRole | |
| RestoredRole | |
| CurrentTabRole | |
| LoadingRole | |
| AudioPlayingRole | |
| AudioMutedRole | |
| BackgroundActivityRole | |
Definition at line 53 of file tabmodel.h.
◆ TabModel()
| TabModel::TabModel |
( |
BrowserWindow * |
window, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ canDropMimeData()
| bool TabModel::canDropMimeData |
( |
const QMimeData * |
data, |
|
|
Qt::DropAction |
action, |
|
|
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| const |
|
override |
◆ data()
| QVariant TabModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ dropMimeData()
| bool TabModel::dropMimeData |
( |
const QMimeData * |
data, |
|
|
Qt::DropAction |
action, |
|
|
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| |
|
override |
◆ flags()
| Qt::ItemFlags TabModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ mimeData()
| QMimeData * TabModel::mimeData |
( |
const QModelIndexList & |
indexes | ) |
const |
|
override |
◆ mimeTypes()
| QStringList TabModel::mimeTypes |
( |
| ) |
const |
|
override |
◆ rowCount()
| int TabModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ supportedDropActions()
| Qt::DropActions TabModel::supportedDropActions |
( |
| ) |
const |
|
override |
◆ tab()
| WebTab * TabModel::tab |
( |
const QModelIndex & |
index | ) |
const |
◆ tabIndex()
| QModelIndex TabModel::tabIndex |
( |
WebTab * |
tab | ) |
const |
The documentation for this class was generated from the following files: