|
|
@ -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) {
|
|
|
|