1 #ifndef QXRDMASKSTACKMODEL_H
2 #define QXRDMASKSTACKMODEL_H
4 #include <QAbstractListModel>
17 virtual QVariant
data (
const QModelIndex & index,
int role )
const;
18 virtual QVariant
headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
19 virtual Qt::ItemFlags
flags (
const QModelIndex & index )
const;
20 virtual bool insertRows (
int row,
int count,
const QModelIndex & parent = QModelIndex() );
21 virtual bool removeRows (
int row,
int count,
const QModelIndex & parent = QModelIndex() );
22 virtual int rowCount (
const QModelIndex & parent = QModelIndex() )
const;
23 virtual int columnCount (
const QModelIndex & parent = QModelIndex() )
const;
24 virtual bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole );
41 #endif // QXRDMASKSTACKMODEL_H
QxrdMaskStackPtr m_MaskStack
virtual QVariant data(const QModelIndex &index, int role) const
void setMaskStack(QxrdMaskStackPtr masks)
virtual Qt::ItemFlags flags(const QModelIndex &index) const
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
QxrdMaskStackPtr maskStack()
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QxrdMaskStackModel(QxrdMaskStackPtr masks)
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
virtual Qt::DropActions supportedDropActions() const