6 #include <QAbstractTableModel>
7 #include <ff7tkdata_export.h>
13 Q_PROPERTY(QList<quint16> items READ allItems WRITE setItems NOTIFY itemsChanged)
16 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
17 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
18 QVariant data(
const QModelIndex &index = QModelIndex(),
int role = Qt::DisplayRole)
const override;
19 bool setData(
const QModelIndex &index = QModelIndex(),
const QVariant &value = QVariant(),
int role = Qt::EditRole)
override;
20 Qt::ItemFlags flags(
const QModelIndex &index = QModelIndex())
const override;
21 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
27 bool setItems(
const QList<quint16> &newItems = {});
32 bool resetItems(
const QList<quint16> &newItems = {});
33 QList<quint16> allItems();
35 void itemsChanged(QList<quint16>);