From 6a027caa8552bd6d05595cca91838536b92845de Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Wed, 8 Mar 2017 14:23:02 +0100 Subject: [PATCH] Commodity searching on shop form is case insensitive now. closes #283 --- shop/shopform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shop/shopform.cpp b/shop/shopform.cpp index e998652..0ce98a4 100644 --- a/shop/shopform.cpp +++ b/shop/shopform.cpp @@ -392,6 +392,7 @@ void ShopForm::on_commoditySearch_textChanged(const QString &text) QSortFilterProxyModel proxy; proxy.setSourceModel(m_commodityModel); proxy.setFilterKeyColumn(0); + proxy.setFilterCaseSensitivity(Qt::CaseInsensitive); proxy.setFilterFixedString(text); auto moveToIndex = [this](const QModelIndex &matchingIndex) {