13 #include <QAbstractListModel> 24 QVariant
data(
const QModelIndex& index,
int nRole)
const;
26 bool setData(
const QModelIndex& index,
27 const QVariant& value,
31 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
34 Qt::Orientation orientation,
35 int nRole = Qt::DisplayRole
38 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
42 const QModelIndex& parent = QModelIndex()
47 const QModelIndex& parent = QModelIndex()
Qt::ItemFlags flags(const QModelIndex &index) const
bool insertRows(int nRow, int nCount, const QModelIndex &parent=QModelIndex())
bool setData(const QModelIndex &index, const QVariant &value, int nRole)
QVariant data(const QModelIndex &index, int nRole) const
IntListModel(const QList< int > &list, QObject *pobj=0)
bool removeRows(int nRow, int nCount, const QModelIndex &parent=QModelIndex())
QVariant headerData(int nSection, Qt::Orientation orientation, int nRole=Qt::DisplayRole) const
int rowCount(const QModelIndex &parent=QModelIndex()) const