6 #ifndef SWIFT_GUI_MODELS_ACTIONMODEL_H
7 #define SWIFT_GUI_MODELS_ACTIONMODEL_H
9 #include <QAbstractItemModel>
11 #include <QScopedPointer>
35 ActionRole = Qt::UserRole
45 QVariant data(
const QModelIndex &index,
int role)
const override;
48 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
51 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
54 QModelIndex parent(
const QModelIndex &index)
const override;
57 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
60 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
64 void setupModelData();
66 QScopedPointer<CActionItem> m_rootItem;
Action tree model, used with hotkey actions.
Models to be used with views, mainly QTableView.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.