summaryrefslogtreecommitdiffstats
path: root/beetplayerproxy.h
blob: 69907aed16d4af7996f4ac406bb383aeaffb8eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;

    private:
        bool hasValidChild(QModelIndex parent) const;
        bool recurseChildren(QModelIndex parent) const;
};

#endif // BEETPLAYERPROXY_H