Feather, a free Monero desktop wallet

Co-Authored-By: tobtoht <thotbot@protonmail.com>
This commit is contained in:
dsc
2020-10-08 04:31:22 +02:00
co-authored by tobtoht
commit 133700160a
728 changed files with 55961 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020, The Monero Project.
#ifndef FEATHER_TRANSACTIONHISTORYPROXYMODEL_H
#define FEATHER_TRANSACTIONHISTORYPROXYMODEL_H
#include "libwalletqt/TransactionHistory.h"
#include "libwalletqt/Wallet.h"
#include <QSortFilterProxyModel>
class TransactionHistoryProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit TransactionHistoryProxyModel(Wallet *wallet, QObject* parent = nullptr);
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
public slots:
void setSearchFilter(const QString& searchString){
m_searchRegExp.setPattern(searchString);
invalidateFilter();
}
private:
Wallet * m_wallet;
QRegExp m_searchRegExp;
};
#endif //FEATHER_TRANSACTIONHISTORYPROXYMODEL_H