Browse Source

Make sort and filters for transactions and labels case-insensitive

0.8
Wladimir J. van der Laan 13 years ago
parent
commit
d67badd9ce
  1. 2
      src/qt/addressbookpage.cpp
  2. 2
      src/qt/transactionview.cpp

2
src/qt/addressbookpage.cpp

@ -113,6 +113,8 @@ void AddressBookPage::setModel(AddressTableModel *model)
proxyModel = new QSortFilterProxyModel(this); proxyModel = new QSortFilterProxyModel(this);
proxyModel->setSourceModel(model); proxyModel->setSourceModel(model);
proxyModel->setDynamicSortFilter(true); proxyModel->setDynamicSortFilter(true);
proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
switch(tab) switch(tab)
{ {
case ReceivingTab: case ReceivingTab:

2
src/qt/transactionview.cpp

@ -160,6 +160,8 @@ void TransactionView::setModel(WalletModel *model)
transactionProxyModel = new TransactionFilterProxy(this); transactionProxyModel = new TransactionFilterProxy(this);
transactionProxyModel->setSourceModel(model->getTransactionTableModel()); transactionProxyModel->setSourceModel(model->getTransactionTableModel());
transactionProxyModel->setDynamicSortFilter(true); transactionProxyModel->setDynamicSortFilter(true);
transactionProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
transactionProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
transactionProxyModel->setSortRole(Qt::EditRole); transactionProxyModel->setSortRole(Qt::EditRole);

Loading…
Cancel
Save