Fixed API change.
This commit is contained in:
+2
-2
@@ -150,7 +150,7 @@ void ShopForm::on_loadButton_clicked()
|
|||||||
form->show();
|
form->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShopForm::onCountChanged(int oldCount)
|
void ShopForm::onCountChanged(int oldCount/* = 0*/)
|
||||||
{
|
{
|
||||||
VoucherItem *item = qobject_cast<VoucherItem*>(sender());
|
VoucherItem *item = qobject_cast<VoucherItem*>(sender());
|
||||||
if (item != NULL && item->count() == 0)
|
if (item != NULL && item->count() == 0)
|
||||||
@@ -268,7 +268,7 @@ void ShopForm::addItem(QSharedPointer<IShopItem> item, int count)
|
|||||||
srv.addShopItem(m_voucher, item, count);
|
srv.addShopItem(m_voucher, item, count);
|
||||||
this->m_itemsModel->addRow(m_voucher->items()[m_voucher->items().count() - 1]);
|
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)));
|
connect(m_voucher->items()[m_voucher->items().count() - 1].data(), SIGNAL(countChanged(int)), this, SLOT(onCountChanged(int)));
|
||||||
onCountChanged(0);
|
onCountChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShopForm::on_receiptCombo_currentIndexChanged(int)
|
void ShopForm::on_receiptCombo_currentIndexChanged(int)
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ private slots:
|
|||||||
|
|
||||||
void on_loadButton_clicked();
|
void on_loadButton_clicked();
|
||||||
|
|
||||||
void onCountChanged(int oldCount);
|
void onCountChanged(int oldCount = 0);
|
||||||
|
|
||||||
void on_receiptCombo_currentIndexChanged(int index);
|
void on_receiptCombo_currentIndexChanged(int index);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user