You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
604 B
27 lines
604 B
4 years ago
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2020, The Monero Project.
|
||
|
|
||
|
#ifndef FEATHER_COINSPROXYMODEL_H
|
||
|
#define FEATHER_COINSPROXYMODEL_H
|
||
|
|
||
|
#include <QSortFilterProxyModel>
|
||
|
|
||
|
class CoinsProxyModel : public QSortFilterProxyModel
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit CoinsProxyModel(QObject* parent = nullptr);
|
||
|
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
||
|
|
||
|
public slots:
|
||
|
void setShowSpent(const bool showSpent){
|
||
|
m_showSpent = showSpent;
|
||
|
invalidateFilter();
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
bool m_showSpent = false;
|
||
|
};
|
||
|
|
||
|
#endif //FEATHER_COINSPROXYMODEL_H
|