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