From 3f34af4bed6214103cfa3d3483ae15c3d888b5c6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 9 Dec 2014 21:23:12 -0700 Subject: Make filter for filter criteria case insensitive When opening the filter dialog we allow the user to filter the choices that are shown. The text that they enter in that filter for filter criteria should be treated as case insensitive. Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 91d003dc9..192de3a80 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -513,6 +513,7 @@ TagFilter::TagFilter(QWidget *parent) : QWidget(parent) #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); filter->setSourceModel(TagFilterModel::instance()); + filter->setFilterCaseSensitivity(Qt::CaseInsensitive); connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString))); ui.filterList->setModel(filter); } @@ -539,6 +540,7 @@ BuddyFilter::BuddyFilter(QWidget *parent) : QWidget(parent) #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); filter->setSourceModel(BuddyFilterModel::instance()); + filter->setFilterCaseSensitivity(Qt::CaseInsensitive); connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString))); ui.filterList->setModel(filter); } @@ -564,6 +566,7 @@ LocationFilter::LocationFilter(QWidget *parent) : QWidget(parent) #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); filter->setSourceModel(LocationFilterModel::instance()); + filter->setFilterCaseSensitivity(Qt::CaseInsensitive); connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString))); ui.filterList->setModel(filter); } @@ -589,6 +592,7 @@ SuitFilter::SuitFilter(QWidget *parent) : QWidget(parent) #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); filter->setSourceModel(SuitsFilterModel::instance()); + filter->setFilterCaseSensitivity(Qt::CaseInsensitive); connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString))); ui.filterList->setModel(filter); } -- cgit v1.2.3-70-g09d2