mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-19 08:08:38 +02:00
29 lines
703 B
C++
29 lines
703 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
|
|
|
|
#ifndef FEATHER_COINSPROXYMODEL_H
|
|
#define FEATHER_COINSPROXYMODEL_H
|
|
|
|
#include <QSortFilterProxyModel>
|
|
|
|
#include "libwalletqt/Coins.h"
|
|
|
|
class CoinsProxyModel : public QSortFilterProxyModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CoinsProxyModel(QObject* parent, Coins *coins);
|
|
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
|
|
|
|
public slots:
|
|
void setSearchFilter(const QString &searchString);
|
|
void setShowSpent(bool showSpent);
|
|
|
|
private:
|
|
Coins *m_coins;
|
|
bool m_showSpent = false;
|
|
QRegularExpression m_searchRegExp;
|
|
};
|
|
|
|
#endif //FEATHER_COINSPROXYMODEL_H
|