Commodity searching on shop form is case insensitive now.

closes #283
print
Josef Rokos 8 years ago
parent 22faefa558
commit 6a027caa85

@ -392,6 +392,7 @@ void ShopForm::on_commoditySearch_textChanged(const QString &text)
QSortFilterProxyModel proxy; QSortFilterProxyModel proxy;
proxy.setSourceModel(m_commodityModel); proxy.setSourceModel(m_commodityModel);
proxy.setFilterKeyColumn(0); proxy.setFilterKeyColumn(0);
proxy.setFilterCaseSensitivity(Qt::CaseInsensitive);
proxy.setFilterFixedString(text); proxy.setFilterFixedString(text);
auto moveToIndex = [this](const QModelIndex &matchingIndex) { auto moveToIndex = [this](const QModelIndex &matchingIndex) {

Loading…
Cancel
Save