25 #ifndef DIGIKAM_SIMPLE_TREE_MODEL_H
26 #define DIGIKAM_SIMPLE_TREE_MODEL_H
30 #include <QAbstractItemModel>
74 explicit SimpleTreeModel(
const int columnCount, QObject*
const parent =
nullptr);
78 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
79 bool setData(
const QModelIndex& index,
const QVariant&
value,
int role)
override;
80 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
81 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
82 QModelIndex parent(
const QModelIndex& index)
const override;
83 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
84 bool setHeaderData(
int section,
Qt::Orientation orientation,
const QVariant&
value,
int role)
override;
85 QVariant headerData(
int section,
Qt::Orientation orientation,
int role)
const override;
86 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
88 Item* addItem(
Item*
const parentItem =
nullptr,
const int rowNumber = -1);
89 Item* indexToItem(
const QModelIndex& itemIndex)
const;
90 Item* rootItem()
const;
91 QModelIndex itemToIndex(
const Item*
const item)
const;
Definition: simpletreemodel.h:46
Item()
Definition: simpletreemodel.h:49
~Item()
Definition: simpletreemodel.h:56
QString data
Definition: simpletreemodel.h:63
Definition: simpletreemodel.h:40
Definition: piwigotalker.h:48
qulonglong value
Definition: itemviewutilities.cpp:592
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43