32 #include <QAbstractItemModel> 35 class QTreeWidgetItem;
52 int rowCount(
const QModelIndex & parent_ = QModelIndex())
const;
53 int columnCount(
const QModelIndex & parent_ = QModelIndex())
const;
55 QModelIndex
index(
int row,
int column,
const QModelIndex & parent_ = QModelIndex())
const;
56 QModelIndex
parent(
const QModelIndex & index_)
const;
57 QVariant
data(
const QModelIndex & index_,
int role = Qt::DisplayRole)
const;
58 bool setData(
const QModelIndex & index_,
const QVariant & value,
int role);
59 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
60 Qt::ItemFlags
flags(
const QModelIndex & index_)
const;
QTreeWidgetItem * RootItem
bool isIndexValid(const QModelIndex &index_) const
Helper for a more comprehensive validation of indices.
virtual ~pqAbstractItemSelectionModel()
QModelIndex index(int row, int column, const QModelIndex &parent_=QModelIndex()) const
int rowCount(const QModelIndex &parent_=QModelIndex()) const
Qt::ItemFlags flags(const QModelIndex &index_) const
bool setData(const QModelIndex &index_, const QVariant &value, int role)
virtual void populateModel(void *dataObject)=0
Concrete classes should implement how the model is to be populated.
QVariant data(const QModelIndex &index_, int role=Qt::DisplayRole) const
QModelIndex parent(const QModelIndex &index_) const
virtual void initializeRootItem()=0
Initialize the root item which holds the header tags.
Abstract class implementing a tree model with checkable items.
pqAbstractItemSelectionModel(QObject *parent_=NULL)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int columnCount(const QModelIndex &parent_=QModelIndex()) const