aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-07-17 11:38:18 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-07-17 11:38:18 +0200
commitd67badd9cec1a2cf0d6f1f3bc910f89ecb6326c9 (patch)
treef96a7c94a1ae59e0f69dcfdc941fe4ba708d3bb8
parentd47afc7f4c6d7f85199e031c0c51feb9291aecc5 (diff)
Make sort and filters for transactions and labels case-insensitive
-rw-r--r--src/qt/addressbookpage.cpp2
-rw-r--r--src/qt/transactionview.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index 7edf4b1ec6..8a74a47f58 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -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:
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index a0e7dd4e77..1370a30ce4 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -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);