24 #ifndef DIGIKAM_ITEM_FILTERS_HISTORY_MODEL_H
25 #define DIGIKAM_ITEM_FILTERS_HISTORY_MODEL_H
29 #include <QAbstractListModel>
41 class ItemFiltersHistoryTreeItem;
52 void setUrl(
const QUrl& url);
57 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
59 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
61 int rowCount(
const QModelIndex&
parent = QModelIndex())
const override;
62 QModelIndex
parent(
const QModelIndex&
index)
const override;
63 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent = QModelIndex())
const override;
Definition: itemfiltershistorymodel.h:44
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition: itemfiltershistorymodel.cpp:130
QModelIndex parent(const QModelIndex &index) const override
Definition: itemfiltershistorymodel.cpp:212
ItemFiltersHistoryModel(QObject *const parent=nullptr, const QUrl &url=QUrl())
Definition: itemfiltershistorymodel.cpp:61
~ItemFiltersHistoryModel() override
Definition: itemfiltershistorymodel.cpp:85
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Definition: itemfiltershistorymodel.cpp:182
void setUrl(const QUrl &url)
Definition: itemfiltershistorymodel.cpp:91
void setupModelData(const QList< DImageHistory::Entry > &entries, ItemFiltersHistoryTreeItem *parent=nullptr)
Definition: itemfiltershistorymodel.cpp:251
void enableEntries(int count)
Definition: itemfiltershistorymodel.cpp:371
void setEnabledEntries(int count)
Definition: itemfiltershistorymodel.cpp:341
bool removeRows(int row, int count, const QModelIndex &parent) override
Definition: itemfiltershistorymodel.cpp:324
void disableEntries(int count)
Definition: itemfiltershistorymodel.cpp:353
void removeEntry(const QModelIndex &index)
Definition: itemfiltershistorymodel.cpp:319
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: itemfiltershistorymodel.cpp:155
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: itemfiltershistorymodel.cpp:230
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Definition: itemfiltershistorymodel.cpp:172
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: itemfiltershistorymodel.cpp:115
Definition: itemfiltershistorytreeitem.h:40
Definition: piwigotalker.h:48
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43