|
| TagsManagerFilterModel (QObject *const data=nullptr) |
|
void | setQuickListTags (const QList< int > &tags) |
|
| TagPropertiesFilterModel (QObject *const parent=nullptr) |
|
void | doNotListTagsWithProperty (const QString &property) |
|
bool | isFiltering () const override |
| Returns if the currently applied filters will result in any filtering.
|
|
void | listOnlyTagsWithProperty (const QString &property) |
|
void | removeDoNotListProperty (const QString &property) |
|
void | removeListOnlyProperty (const QString &property) |
|
void | setSourceAlbumModel (TagModel *const source) |
|
TagModel * | sourceTagModel () const |
|
| CheckableAlbumFilterModel (QObject *const parent=nullptr) |
|
void | setFilterChecked (bool filter) |
|
void | setFilterPartiallyChecked (bool filter) |
|
void | setSourceCheckableAlbumModel (AbstractCheckableAlbumModel *const source) |
|
void | setSourceFilterModel (CheckableAlbumFilterModel *const source) |
|
AbstractCheckableAlbumModel * | sourceCheckableAlbumModel () const |
|
| AlbumFilterModel (QObject *const parent=nullptr) |
|
Album * | albumForIndex (const QModelIndex &index) const |
| Convenience methods.
|
|
QVariant | dataForCurrentSortRole (Album *album) const |
|
QModelIndex | indexForAlbum (Album *album) const |
|
QModelIndex | mapFromSourceAlbumModel (const QModelIndex &index) const |
|
QModelIndex | mapToSourceAlbumModel (const QModelIndex &index) const |
|
MatchResult | matchResult (const QModelIndex &index) const |
| Returns the MatchResult of an index of this model.
|
|
QModelIndex | rootAlbumIndex () const |
|
SearchTextSettings | searchTextSettings () const |
| Returns the settings currently used for filtering.
|
|
void | setFilterBehavior (FilterBehavior behavior) |
| Sets the filter behavior.
|
|
void | setSourceAlbumModel (AbstractAlbumModel *const source) |
| Sets the source model.
|
|
void | setSourceFilterModel (AlbumFilterModel *const source) |
| Sets a chained filter model.
|
|
AbstractAlbumModel * | sourceAlbumModel () const |
|
AlbumFilterModel * | sourceFilterModel () const |
|
void | updateFilter () |
| Force invalidateFilter() externally.
|
|
|
enum | FilterBehavior { SimpleFiltering
, FullFiltering
, StrictFiltering
} |
|
enum | MatchResult {
NoMatch = 0
, DirectMatch
, ParentMatch
, ChildMatch
,
SpecialMatch
} |
|
void | setSearchTextSettings (const SearchTextSettings &settings) |
| Accepts new settings used for filtering and applies them to the model.
|
|
void | hasSearchResult (bool hasResult) |
| Indicates whether the newly applied filter results in a search result or not.
|
|
void | searchTextSettingsAboutToChange (bool searched, bool willSearch) |
| This signal indicates that a new SearchTextSettings arrived and is about to be applied to the model.
|
|
void | searchTextSettingsChanged (bool wasSearching, bool searched) |
| Indicates that new search text settings were applied.
|
|
void | signalFilterChanged () |
| Indicates that a new filter was applied to the model.
|
|
template<typename T > |
static int | compareByOrder (const T &a, const T &b, Qt::SortOrder sortOrder) |
|
static int | compareByOrder (int compareResult, Qt::SortOrder sortOrder) |
| Takes a typical result from a compare method (0 is equal, -1 is less than, 1 is greater than) and applies the given sort order to it.
|
|
template<typename T > |
static int | compareValue (const T &a, const T &b) |
| Returns the usual compare result of -1, 0, or 1 for lessThan, equals and greaterThan.
|
|
void | tagPropertiesChanged (TAlbum *) |
|
void | slotAlbumRenamed (Album *album) |
|
void | slotAlbumsHaveBeenUpdated (int type) |
|