#include <visual_deck_storage_sort_filter_proxy_model.h>
|
| bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
| bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
◆ FilterMode
How the color identity filter is applied.
| Enumerator |
|---|
| ExactMatch | |
| Includes | |
| Excludes | |
◆ SortOrder
The order in which decks are sorted. Values must match the entries of the sort widget's combo box and the stored settings value.
| Enumerator |
|---|
| ByName | |
| Alphabetical | |
| ByLastModified | |
| ByLastLoaded | |
◆ VisualDeckStorageSortFilterProxyModel()
| VisualDeckStorageSortFilterProxyModel::VisualDeckStorageSortFilterProxyModel |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ data()
| QVariant VisualDeckStorageSortFilterProxyModel::data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
nodiscardoverride |
◆ deckSourceModel()
◆ filterAcceptsRow()
| bool VisualDeckStorageSortFilterProxyModel::filterAcceptsRow |
( |
int | sourceRow, |
|
|
const QModelIndex & | sourceParent ) const |
|
overrideprotected |
◆ lessThan()
| bool VisualDeckStorageSortFilterProxyModel::lessThan |
( |
const QModelIndex & | left, |
|
|
const QModelIndex & | right ) const |
|
overrideprotected |
◆ reapplyFilters()
| void VisualDeckStorageSortFilterProxyModel::reapplyFilters |
( |
| ) |
|
Re-evaluates all matches against the current model data and re-applies filtering and sorting. Called after deck data changes.
◆ resizeMatchLists()
| void VisualDeckStorageSortFilterProxyModel::resizeMatchLists |
( |
| ) |
|
|
private |
◆ resort()
| void VisualDeckStorageSortFilterProxyModel::resort |
( |
| ) |
|
Re-applies the current sort order without touching the filters.
◆ rowMatches()
| bool VisualDeckStorageSortFilterProxyModel::rowMatches |
( |
int | sourceRow | ) |
const |
|
nodiscardprivate |
◆ setColorFilter()
| void VisualDeckStorageSortFilterProxyModel::setColorFilter |
( |
FilterMode | mode, |
|
|
const QSet< QChar > & | colors ) |
◆ setSearchText()
| void VisualDeckStorageSortFilterProxyModel::setSearchText |
( |
const QString & | text | ) |
|
◆ setSortOrder()
| void VisualDeckStorageSortFilterProxyModel::setSortOrder |
( |
SortOrder | order | ) |
|
Sets the sort order and applies it immediately.
◆ setSourceModel()
| void VisualDeckStorageSortFilterProxyModel::setSourceModel |
( |
QAbstractItemModel * | model | ) |
|
|
override |
◆ setTagFilter()
| void VisualDeckStorageSortFilterProxyModel::setTagFilter |
( |
const QSet< QString > & | newSelectedTags, |
|
|
const QSet< QString > & | newExcludedTags ) |
◆ updateColorMatches()
| void VisualDeckStorageSortFilterProxyModel::updateColorMatches |
( |
| ) |
|
|
private |
◆ updateSearchMatches()
| void VisualDeckStorageSortFilterProxyModel::updateSearchMatches |
( |
| ) |
|
|
private |
◆ updateTagMatches()
| void VisualDeckStorageSortFilterProxyModel::updateTagMatches |
( |
| ) |
|
|
private |
◆ activeColors
| QSet<QChar> VisualDeckStorageSortFilterProxyModel::activeColors |
|
private |
◆ colorFilterMode
◆ colorMatches
| QList<bool> VisualDeckStorageSortFilterProxyModel::colorMatches |
|
private |
Per-row color identity match.
◆ excludedTags
| QSet<QString> VisualDeckStorageSortFilterProxyModel::excludedTags |
|
private |
◆ searchMatches
| QList<bool> VisualDeckStorageSortFilterProxyModel::searchMatches |
|
private |
Per-row search match, sized like the source model.
◆ searchText
| QString VisualDeckStorageSortFilterProxyModel::searchText |
|
private |
◆ selectedTags
| QSet<QString> VisualDeckStorageSortFilterProxyModel::selectedTags |
|
private |
◆ sortOrder
◆ tagMatches
| QList<bool> VisualDeckStorageSortFilterProxyModel::tagMatches |
|
private |
The documentation for this class was generated from the following files: