This commit is contained in:
2017-03-08 14:44:18 +01:00
10 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>2</number>
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
+1
View File
@@ -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) {
+5
View File
@@ -247,6 +247,11 @@ void ShopService::moveItems(QList<VoucherItemPtr> items, VoucherPtr source, Vouc
{
erase(source);
}
else
{
calculate(source);
update(source);
}
tx.commit();
}