summaryrefslogtreecommitdiffstats
path: root/storemodel.h
blob: e503a1ce1114d35017fe8b77365c2859b71fb332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef STOREMODEL_H
#define STOREMODEL_H

#include <QSortFilterProxyModel>
#include <QFileSystemModel>

class StoreModel : public QSortFilterProxyModel
{
    Q_OBJECT
private:
    QFileSystemModel* fs;

public:
    StoreModel();

    bool filterAcceptsRow(int, const QModelIndex &) const;
    bool ShowThis(const QModelIndex) const;
    void setFSModel(QFileSystemModel *sourceModel);
};

#endif // STOREMODEL_H