Raven Core  3.0.0
P2P Digital Currency
assetfilterproxy.h
Go to the documentation of this file.
1 // Copyright (c) 2017-2019 The Raven Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef RAVENCOIN_ASSETFILTERPROXY_H
6 #define RAVENCOIN_ASSETFILTERPROXY_H
7 
8 #include <QSortFilterProxyModel>
9 
10 class AssetFilterProxy : public QSortFilterProxyModel
11 {
12  Q_OBJECT
13 
14 public:
15  explicit AssetFilterProxy(QObject *parent = 0);
16 
17  void setAssetNamePrefix(const QString &assetNamePrefix);
18 
19 protected:
20  bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const;
21 
22 private:
23  QString assetNamePrefix;
24 };
25 
26 
27 #endif //RAVENCOIN_ASSETFILTERPROXY_H
AssetFilterProxy(QObject *parent=0)
void setAssetNamePrefix(const QString &assetNamePrefix)
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const