Browse Source

Merge pull request #1605 from laanwj/2012_07_caseinsensitivesort

Make sort and filters for transactions and labels case-insensitive
0.8
Wladimir J. van der Laan 13 years ago
parent
commit
e47bd0195c
  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) @@ -113,6 +113,8 @@ void AddressBookPage::setModel(AddressTableModel *model)
proxyModel = new QSortFilterProxyModel(this);
proxyModel->setSourceModel(model);
proxyModel->setDynamicSortFilter(true);
proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
switch(tab)
{
case ReceivingTab:

2
src/qt/transactionview.cpp

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

Loading…
Cancel
Save