diff options
author | Arno <arno@disconnect.de> | 2017-02-25 18:45:49 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-02-25 18:45:49 +0100 |
commit | a169ca87cbe7b3ebe6f9ef24335f65ca64791116 (patch) | |
tree | da37dd590ac329bb36229702017cd76daf4b12a3 /beetplayerproxy.h | |
parent | ffa50a24296688d1c6e9f4de2315bbd494f86cf6 (diff) | |
download | BeetPlayer-a169ca87cbe7b3ebe6f9ef24335f65ca64791116.tar.gz BeetPlayer-a169ca87cbe7b3ebe6f9ef24335f65ca64791116.tar.bz2 BeetPlayer-a169ca87cbe7b3ebe6f9ef24335f65ca64791116.zip |
Implement filtering
Well, as it turns out, QSortFilterProxyModel isn't the weapon of choice
for this. Implement it by creating a separate model which is populated
by SQL-Queries.
Diffstat (limited to 'beetplayerproxy.h')
-rw-r--r-- | beetplayerproxy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/beetplayerproxy.h b/beetplayerproxy.h index b50b972..69907ae 100644 --- a/beetplayerproxy.h +++ b/beetplayerproxy.h @@ -10,6 +10,10 @@ class BeetPlayerProxy : public QSortFilterProxyModel { protected: virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; + + private: + bool hasValidChild(QModelIndex parent) const; + bool recurseChildren(QModelIndex parent) const; }; #endif // BEETPLAYERPROXY_H |