24 #ifndef DIGIKAM_ITEM_HISTORY_GRAPH_MODEL_H
25 #define DIGIKAM_ITEM_HISTORY_GRAPH_MODEL_H
29 #include <QAbstractItemModel>
40 class ItemHistoryGraph;
61 IsImageItemRole = Qt::UserRole + 1000,
62 IsFilterActionItemRole = Qt::UserRole + 1001,
63 IsHeaderItemRole = Qt::UserRole + 1002,
64 IsCategoryItemRole = Qt::UserRole + 1003,
65 IsSeparatorItemRole = Qt::UserRole + 1004,
67 IsSubjectImageRole = Qt::UserRole + 1010,
69 FilterActionRole = Qt::UserRole + 1020
77 void setMode(Mode mode);
84 void setHistory(
const ItemInfo& subject,
89 bool isImage(
const QModelIndex& index)
const;
91 ItemInfo imageInfo(
const QModelIndex& index)
const;
94 QModelIndex indexForInfo(
const ItemInfo& info)
const;
96 bool isFilterAction(
const QModelIndex& index)
const;
97 FilterAction filterAction(
const QModelIndex& index)
const;
101 QVariant headerData(
int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
102 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
103 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
104 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
105 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const override;
106 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
107 QModelIndex parent(
const QModelIndex& index)
const override;
108 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
109 bool setData(
const QModelIndex& index,
const QVariant&
value,
int role)
override;
125 QModelIndex imageModelIndex(
const QModelIndex& index)
const;
Definition: dragdropimplementations.h:40
Definition: filteraction.h:43
Definition: itemhistorygraphmodel.h:47
ExtraRoles
Definition: itemhistorygraphmodel.h:60
Mode
Definition: itemhistorygraphmodel.h:53
@ ImagesTreeMode
Definition: itemhistorygraphmodel.h:55
@ ImagesListMode
Definition: itemhistorygraphmodel.h:54
Definition: itemhistorygraph.h:46
Definition: iteminfo.h:78
Definition: itemlistmodel.h:39
#define DECLARE_MODEL_DRAG_DROP_METHODS
Definition: dragdropimplementations.h:90
qulonglong value
Definition: itemviewutilities.cpp:592
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43