Voucher item grid now scrolls to bottom on add new item.

closes #288
This commit is contained in:
2017-03-21 14:31:45 +01:00
parent c6e4e5818a
commit bf67dadaeb
3 changed files with 8 additions and 4 deletions
+2
View File
@@ -311,6 +311,8 @@ void ShopForm::addItem(QSharedPointer<IShopItem> item, int count)
this->m_itemsModel->addRow(m_voucher->items()[m_voucher->items().count() - 1]);
connect(m_voucher->items()[m_voucher->items().count() - 1].data(), SIGNAL(countChanged(int)), this, SLOT(onCountChanged(int)));
onCountChanged();
ui->actualReceipt->scrollToBottom();
}
void ShopForm::on_receiptCombo_currentIndexChanged(int)