diff options
author | Arno <arno@disconnect.de> | 2017-02-25 08:31:41 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-02-25 08:31:41 +0100 |
commit | ffa50a24296688d1c6e9f4de2315bbd494f86cf6 (patch) | |
tree | dc8907443a6830456e0b896a075f0b39fcbb9ed1 /beetplayerproxy.h | |
parent | 1530584c9b942d07e331323867072b6a9809119b (diff) | |
download | BeetPlayer-ffa50a24296688d1c6e9f4de2315bbd494f86cf6.tar.gz BeetPlayer-ffa50a24296688d1c6e9f4de2315bbd494f86cf6.tar.bz2 BeetPlayer-ffa50a24296688d1c6e9f4de2315bbd494f86cf6.zip |
Rethink GUI
While figuring out how to populate the album view, I realized that I
don't want to view my music by albums, only by artist, maybe by genre...
So I removed the QComboBox for the different sort orders and
concentrated on the filter, which is a good thing (tm). Just make the
filter find anything you need. Name/Title is already implemented. Have to
think about genre/year...
Diffstat (limited to 'beetplayerproxy.h')
-rw-r--r-- | beetplayerproxy.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/beetplayerproxy.h b/beetplayerproxy.h new file mode 100644 index 0000000..b50b972 --- /dev/null +++ b/beetplayerproxy.h @@ -0,0 +1,15 @@ +#ifndef BEETPLAYERPROXY_H +#define BEETPLAYERPROXY_H + +#include <QSortFilterProxyModel> + +class BeetPlayerProxy : public QSortFilterProxyModel { + Q_OBJECT + public: + BeetPlayerProxy(QObject *parent = 0); + + protected: + virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; +}; + +#endif // BEETPLAYERPROXY_H |