From ffa50a24296688d1c6e9f4de2315bbd494f86cf6 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 25 Feb 2017 08:31:41 +0100 Subject: 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... --- beetplayerproxy.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 beetplayerproxy.h (limited to 'beetplayerproxy.h') 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 + +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 -- cgit v1.2.3-70-g09d2