swift
|
Action tree model, used with hotkey actions. More...
Public Types | |
enum | ItemRole { ActionRole = Qt::UserRole } |
User roles. | |
Public Member Functions | |
CActionModel (QObject *parent=nullptr) | |
Constructor. | |
virtual | ~CActionModel () |
Destructor. | |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
Action tree model, used with hotkey actions.
Definition at line 27 of file actionmodel.h.
int swift::gui::models::CActionModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 28 of file actionmodel.cpp.
QVariant swift::gui::models::CActionModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 34 of file actionmodel.cpp.
Qt::ItemFlags swift::gui::models::CActionModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 48 of file actionmodel.cpp.
QModelIndex swift::gui::models::CActionModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
Definition at line 57 of file actionmodel.cpp.
QModelIndex swift::gui::models::CActionModel::parent | ( | const QModelIndex & | index | ) | const |
Definition at line 68 of file actionmodel.cpp.
int swift::gui::models::CActionModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 80 of file actionmodel.cpp.