31class ShowfotoFilterModel;
56 QList<QModelIndex>
mapListToSource(
const QList<QModelIndex>& indexes)
const;
57 QList<QModelIndex>
mapListFromSource(
const QList<QModelIndex>& sourceIndexes)
const;
61 QList<ShowfotoItemInfo>
showfotoItemInfos(
const QList<QModelIndex>& indexes)
const;
131 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
146 TODO: Implement filtering in Showfoto tool.
147 virtual void setItemFilterSettings(const ItemFilterSettings& settings);
150 TODO: virtual void setItemSortSettings(const ItemSortSettings& settings);
169 class ShowfotoFilterModelPrivate;
173 ShowfotoFilterModelPrivate*
const d_ptr =
nullptr;
182 int compareCategories(
const QModelIndex& left,
const QModelIndex& right)
const override;
183 bool subSortLessThan(
const QModelIndex& left,
const QModelIndex& right)
const override;
221 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
Definition dcategorizedsortfilterproxymodel.h:43
Definition showfotofiltermodel.h:212
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
Definition showfotofiltermodel.cpp:508
Definition showfotofiltermodel.h:92
void setSortRole(ShowfotoItemSortSettings::SortRole role)
Definition showfotofiltermodel.cpp:322
virtual QString categoryIdentifier(const ShowfotoItemInfo &info) const
Definition showfotofiltermodel.cpp:473
void showfotoItemInfosAdded(const QList< ShowfotoItemInfo > &infos)
ShowfotoItemSortSettings showfotoItemSortSettings() const
void setDirectSourceShowfotoModel(ShowfotoItemModel *const sourceModel) override
Reimplement if needed. Called only when model shall be set as (direct) sourceModel.
Definition showfotofiltermodel.cpp:382
void slotRowsInserted(const QModelIndex &parent, int start, int end)
Definition showfotofiltermodel.cpp:358
ShowfotoFilterModelRoles
Definition showfotofiltermodel.h:98
@ SortOrderRole
Returns the current sort order.
Definition showfotofiltermodel.h:103
@ ShowfotoFilterModelPointerRole
Definition showfotofiltermodel.h:112
@ CategorizationModeRole
Returns the current categorization mode.
Definition showfotofiltermodel.h:100
@ CategoryFormatRole
Returns the format of the index which is used for category.
Definition showfotofiltermodel.h:106
~ShowfotoFilterModel() override
Definition showfotofiltermodel.cpp:251
virtual bool infosLessThan(const ShowfotoItemInfo &left, const ShowfotoItemInfo &right) const
Definition showfotofiltermodel.cpp:466
void slotRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition showfotofiltermodel.cpp:370
ShowfotoFilterModelPrivate *const d_ptr
Definition showfotofiltermodel.h:173
void setShowfotoItemSortSettings(const ShowfotoItemSortSettings &sorter)
Definition showfotofiltermodel.cpp:305
void setSortOrder(ShowfotoItemSortSettings::SortOrder order)
Definition showfotofiltermodel.cpp:330
bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const override
Definition showfotofiltermodel.cpp:434
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition showfotofiltermodel.cpp:258
void showfotoItemInfosAboutToBeRemoved(const QList< ShowfotoItemInfo > &infos)
virtual int compareInfosCategories(const ShowfotoItemInfo &left, const ShowfotoItemInfo &right) const
Definition showfotofiltermodel.cpp:459
void setCategorizationMode(ShowfotoItemSortSettings::CategorizationMode mode)
Definition showfotofiltermodel.cpp:314
void setSendShowfotoItemInfoSignals(bool sendSignals)
Enables sending ShowfotoItemInfosAdded and ShowfotoItemInfosAboutToBeRemoved.
Definition showfotofiltermodel.cpp:338
ShowfotoFilterModel * showfotoFilterModel() const override
Returns this, any chained ShowfotoFilterModel, or 0.
Definition showfotofiltermodel.cpp:298
int compareCategories(const QModelIndex &left, const QModelIndex &right) const override
Definition showfotofiltermodel.cpp:416
Definition showfotoiteminfo.h:38
Definition showfotoitemmodel.h:37
@ FilterModelRoles
Definition showfotoitemmodel.h:66
Definition showfotoitemsortsettings.h:29
SortOrder
Definition showfotoitemsortsettings.h:33
SortRole
Definition showfotoitemsortsettings.h:47
CategorizationMode
Definition showfotoitemsortsettings.h:40
Definition showfotofiltermodel.h:34
ShowfotoSortFilterModel * m_chainedModel
Definition showfotofiltermodel.h:86
QModelIndex indexForShowfotoItemInfo(const ShowfotoItemInfo &info) const
Definition showfotofiltermodel.cpp:167
QModelIndex indexForShowfotoItemId(qlonglong id) const
Definition showfotofiltermodel.cpp:172
QList< QModelIndex > mapListToSource(const QList< QModelIndex > &indexes) const
Definition showfotofiltermodel.cpp:121
ShowfotoItemInfo showfotoItemInfo(const QModelIndex &index) const
Definition showfotofiltermodel.cpp:145
void setSourceFilterModel(ShowfotoSortFilterModel *const sourceModel)
Definition showfotofiltermodel.cpp:55
QList< ShowfotoItemInfo > showfotoItemInfos(const QList< QModelIndex > &indexes) const
Definition showfotofiltermodel.cpp:150
void setSourceModel(QAbstractItemModel *sourceModel) override
Definition showfotofiltermodel.cpp:200
qlonglong showfotoItemId(const QModelIndex &index) const
void setSourceShowfotoModel(ShowfotoItemModel *const sourceModel)
Definition showfotofiltermodel.cpp:33
ShowfotoSortFilterModel * sourceFilterModel() const
Definition showfotofiltermodel.cpp:71
~ShowfotoSortFilterModel() override
Definition showfotofiltermodel.cpp:29
QList< QModelIndex > mapListFromSource(const QList< QModelIndex > &sourceIndexes) const
Definition showfotofiltermodel.cpp:133
QModelIndex mapToSourceShowfotoModel(const QModelIndex &proxyIndex) const
Definition showfotofiltermodel.cpp:76
QList< ShowfotoItemInfo > showfotoItemInfosSorted() const
Definition showfotofiltermodel.cpp:177
ShowfotoItemModel * sourceShowfotoModel() const
Definition showfotofiltermodel.cpp:45
QModelIndex mapFromDirectSourceToSourceShowfotoModel(const QModelIndex &sourceModelIndex) const
Definition showfotofiltermodel.cpp:106
virtual ShowfotoFilterModel * showfotoFilterModel() const
Returns this, any chained ShowfotoFilterModel, or 0.
Definition showfotofiltermodel.cpp:190
QList< qlonglong > showfotoItemIds(const QList< QModelIndex > &indexes) const
virtual void setDirectSourceShowfotoModel(ShowfotoItemModel *const sourceModel)
Reimplement if needed. Called only when model shall be set as (direct) sourceModel.
Definition showfotofiltermodel.cpp:205
QModelIndex indexForUrl(const QUrl &fileUrl) const
Definition showfotofiltermodel.cpp:162
QModelIndex mapFromSourceShowfotoModel(const QModelIndex &showfotoModelIndex) const
Definition showfotofiltermodel.cpp:91
Definition showfotofolderviewbar.cpp:43