1 #ifndef SORTEDLIBRARY_H
2 #define SORTEDLIBRARY_H
4 #include <QSortFilterProxyModel>
7 /** Sorted library model. */
8 class SortedLibrary: public QSortFilterProxyModel
13 enum SortBy {SortByTitle, SortByAuthor};
14 explicit SortedLibrary(QObject *parent = 0);
15 bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
16 void sortBy(SortBy key);
26 #endif // SORTEDLIBRARY_H