6 #ifndef SWIFT_GUI_MODELS_ACTIONHOTKEYLISTMODEL_H
7 #define SWIFT_GUI_MODELS_ACTIONHOTKEYLISTMODEL_H
9 #include <QAbstractTableModel>
30 ActionHotkeyRole = Qt::UserRole
40 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
43 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
46 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
49 bool setData(
const QModelIndex &index,
const QVariant &var,
int role)
override;
52 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
55 bool insertRows(
int position,
int rows,
const QModelIndex &index)
override;
58 bool removeRows(
int position,
int rows,
const QModelIndex &index)
override;
virtual ~CActionHotkeyListModel()
Destructor.
Models to be used with views, mainly QTableView.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.