51 IsImageItemRole = Qt::UserRole + 1000,
52 IsFilterActionItemRole = Qt::UserRole + 1001,
53 IsHeaderItemRole = Qt::UserRole + 1002,
54 IsCategoryItemRole = Qt::UserRole + 1003,
55 IsSeparatorItemRole = Qt::UserRole + 1004,
57 IsSubjectImageRole = Qt::UserRole + 1010,
59 FilterActionRole = Qt::UserRole + 1020
67 void setMode(Mode mode);
74 void setHistory(
const ItemInfo& subject,
79 bool isImage(
const QModelIndex& index)
const;
81 ItemInfo imageInfo(
const QModelIndex& index)
const;
86 QModelIndex indexForInfo(
const ItemInfo& info)
const;
88 bool isFilterAction(
const QModelIndex& index)
const;
89 FilterAction filterAction(
const QModelIndex& index)
const;
94 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
95 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
96 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
97 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
98 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const override;
99 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
100 QModelIndex parent(
const QModelIndex& index)
const override;
101 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
102 bool setData(
const QModelIndex& index,
const QVariant&
value,
int role)
override;
118 QModelIndex imageModelIndex(
const QModelIndex& index)
const;
129 Private*
const d =
nullptr;
Definition itemhistorygraphmodel.h:37
ExtraRoles
Definition itemhistorygraphmodel.h:50
Mode
Definition itemhistorygraphmodel.h:43
@ ImagesTreeMode
Definition itemhistorygraphmodel.h:45
@ ImagesListMode
Definition itemhistorygraphmodel.h:44
Definition itemhistorygraph.h:36