Miam-Player  0.8.0
A nice music player
MiamSortFilterProxyModel Class Reference

The MiamSortFilterProxyModel class. More...

#include <miamsortfilterproxymodel.h>

Inheritance diagram for MiamSortFilterProxyModel:
LibraryFilterProxyModel UniqueLibraryFilterProxyModel


void aboutToHighlightLetters (const QSet< QChar > &letters)

Public Member Functions

 MiamSortFilterProxyModel (QObject *parent=nullptr)
void setTopLevelItems (const QMultiHash< SeparatorItem *, QModelIndex > &topLevelItems)
void findMusic (const QString &text)
void highlightMatchingText (const QString &text)

Protected Attributes

QMultiHash< SeparatorItem *, QModelIndex > _topLevelItems

Detailed Description

The MiamSortFilterProxyModel class.

Matthieu Bachelier

Constructor & Destructor Documentation

MiamSortFilterProxyModel::MiamSortFilterProxyModel ( QObject *  parent = nullptr)

Member Function Documentation

void MiamSortFilterProxyModel::aboutToHighlightLetters ( const QSet< QChar > &  letters)
void MiamSortFilterProxyModel::findMusic ( const QString &  text)
void MiamSortFilterProxyModel::highlightMatchingText ( const QString &  text)

Highlight items in the Tree when one has activated this option in settings.

void MiamSortFilterProxyModel::setTopLevelItems ( const QMultiHash< SeparatorItem *, QModelIndex > &  topLevelItems)

Member Data Documentation

QMultiHash<SeparatorItem*, QModelIndex> MiamSortFilterProxyModel::_topLevelItems

Top levels items are specific items, like letters 'A', 'B', ... in the library. Each letter has a reference to all items beginning with this letter.

The documentation for this class was generated from the following files: