24 #ifndef SHOW_FOTO_FILTER_MODEL_H
25 #define SHOW_FOTO_FILTER_MODEL_H
41 class ShowfotoFilterModel;
141 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
179 class ShowfotoFilterModelPrivate;
183 ShowfotoFilterModelPrivate*
const d_ptr;
192 int compareCategories(
const QModelIndex& left,
const QModelIndex& right)
const override;
193 bool subSortLessThan(
const QModelIndex& left,
const QModelIndex& right)
const override;
231 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
Definition: dcategorizedsortfilterproxymodel.h:53
Definition: showfotofiltermodel.h:222
NoDuplicatesShowfotoFilterModel(QObject *const parent=nullptr)
Definition: showfotofiltermodel.cpp:512
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
Definition: showfotofiltermodel.cpp:517
Definition: showfotofiltermodel.h:102
void setSortRole(ShowfotoItemSortSettings::SortRole role)
Definition: showfotofiltermodel.cpp:333
virtual QString categoryIdentifier(const ShowfotoItemInfo &info) const
Definition: showfotofiltermodel.cpp:482
void showfotoItemInfosAdded(const QList< ShowfotoItemInfo > &infos)
ShowfotoFilterModel(QObject *const parent=nullptr)
Definition: showfotofiltermodel.cpp:258
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:391
void slotRowsInserted(const QModelIndex &parent, int start, int end)
Definition: showfotofiltermodel.cpp:367
ShowfotoFilterModelRoles
Definition: showfotofiltermodel.h:108
@ SortOrderRole
Returns the current sort order.
Definition: showfotofiltermodel.h:113
@ ShowfotoFilterModelPointerRole
Definition: showfotofiltermodel.h:122
@ CategorizationModeRole
Returns the current categorization mode.
Definition: showfotofiltermodel.h:110
@ CategoryFormatRole
Returns the format of the index which is used for category.
Definition: showfotofiltermodel.h:116
~ShowfotoFilterModel() override
Definition: showfotofiltermodel.cpp:265
virtual bool infosLessThan(const ShowfotoItemInfo &left, const ShowfotoItemInfo &right) const
Definition: showfotofiltermodel.cpp:475
void slotRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: showfotofiltermodel.cpp:379
ShowfotoFilterModelPrivate *const d_ptr
Definition: showfotofiltermodel.h:179
void setShowfotoItemSortSettings(const ShowfotoItemSortSettings &sorter)
Definition: showfotofiltermodel.cpp:318
void setSortOrder(ShowfotoItemSortSettings::SortOrder order)
Definition: showfotofiltermodel.cpp:340
bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const override
Definition: showfotofiltermodel.cpp:443
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition: showfotofiltermodel.cpp:271
void showfotoItemInfosAboutToBeRemoved(const QList< ShowfotoItemInfo > &infos)
virtual int compareInfosCategories(const ShowfotoItemInfo &left, const ShowfotoItemInfo &right) const
Definition: showfotofiltermodel.cpp:468
void setCategorizationMode(ShowfotoItemSortSettings::CategorizationMode mode)
Definition: showfotofiltermodel.cpp:326
void setSendShowfotoItemInfoSignals(bool sendSignals)
Enables sending ShowfotoItemInfosAdded and ShowfotoItemInfosAboutToBeRemoved.
Definition: showfotofiltermodel.cpp:347
ShowfotoFilterModel * showfotoFilterModel() const override
Returns this, any chained ShowfotoFilterModel, or 0.
Definition: showfotofiltermodel.cpp:311
int compareCategories(const QModelIndex &left, const QModelIndex &right) const override
Definition: showfotofiltermodel.cpp:425
Definition: showfotoiteminfo.h:48
Definition: showfotoitemmodel.h:47
@ FilterModelRoles
Definition: showfotoitemmodel.h:76
Definition: showfotoitemsortsettings.h:39
SortOrder
Definition: showfotoitemsortsettings.h:43
SortRole
Definition: showfotoitemsortsettings.h:57
CategorizationMode
Definition: showfotoitemsortsettings.h:50
Definition: showfotofiltermodel.h:44
ShowfotoSortFilterModel * m_chainedModel
Definition: showfotofiltermodel.h:96
QModelIndex indexForShowfotoItemInfo(const ShowfotoItemInfo &info) const
Definition: showfotofiltermodel.cpp:177
QModelIndex indexForShowfotoItemId(qlonglong id) const
Definition: showfotofiltermodel.cpp:182
QList< QModelIndex > mapListToSource(const QList< QModelIndex > &indexes) const
Definition: showfotofiltermodel.cpp:131
ShowfotoItemInfo showfotoItemInfo(const QModelIndex &index) const
Definition: showfotofiltermodel.cpp:155
void setSourceFilterModel(ShowfotoSortFilterModel *const sourceModel)
Definition: showfotofiltermodel.cpp:65
QList< ShowfotoItemInfo > showfotoItemInfos(const QList< QModelIndex > &indexes) const
Definition: showfotofiltermodel.cpp:160
void setSourceModel(QAbstractItemModel *sourceModel) override
Definition: showfotofiltermodel.cpp:210
qlonglong showfotoItemId(const QModelIndex &index) const
void setSourceShowfotoModel(ShowfotoItemModel *const sourceModel)
Definition: showfotofiltermodel.cpp:43
ShowfotoSortFilterModel * sourceFilterModel() const
Definition: showfotofiltermodel.cpp:81
ShowfotoSortFilterModel(QObject *const parent=nullptr)
Definition: showfotofiltermodel.cpp:33
~ShowfotoSortFilterModel() override
Definition: showfotofiltermodel.cpp:39
QList< QModelIndex > mapListFromSource(const QList< QModelIndex > &sourceIndexes) const
Definition: showfotofiltermodel.cpp:143
QModelIndex mapToSourceShowfotoModel(const QModelIndex &proxyIndex) const
Definition: showfotofiltermodel.cpp:86
QList< ShowfotoItemInfo > showfotoItemInfosSorted() const
Definition: showfotofiltermodel.cpp:187
ShowfotoItemModel * sourceShowfotoModel() const
Definition: showfotofiltermodel.cpp:55
QModelIndex mapFromDirectSourceToSourceShowfotoModel(const QModelIndex &sourceModelIndex) const
Definition: showfotofiltermodel.cpp:116
virtual ShowfotoFilterModel * showfotoFilterModel() const
Returns this, any chained ShowfotoFilterModel, or 0.
Definition: showfotofiltermodel.cpp:200
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:215
QModelIndex indexForUrl(const QUrl &fileUrl) const
Definition: showfotofiltermodel.cpp:172
QModelIndex mapFromSourceShowfotoModel(const QModelIndex &showfotoModelIndex) const
Definition: showfotofiltermodel.cpp:101
Definition: showfotofolderviewbar.cpp:52