Coins: add searchbar

This commit is contained in:
tobtoht
2021-06-28 19:20:16 +02:00
parent 04b2f5f9a0
commit e5ac996ae5
8 changed files with 60 additions and 26 deletions
+4 -5
View File
@@ -7,12 +7,11 @@
#include "libwalletqt/TransactionInfo.h"
TransactionHistoryProxyModel::TransactionHistoryProxyModel(Wallet *wallet, QObject *parent)
: QSortFilterProxyModel(parent),
m_wallet(wallet),
m_searchRegExp("")
: QSortFilterProxyModel(parent)
, m_wallet(wallet)
, m_searchRegExp("")
{
m_searchRegExp.setCaseSensitivity(Qt::CaseInsensitive);
m_searchRegExp.setPatternSyntax(QRegExp::RegExp);
m_searchRegExp.setPatternOptions(QRegularExpression::CaseInsensitiveOption);
m_history = m_wallet->history();
}