Added setting for hide control for item count on shop form.
This commit is contained in:
+14
-4
@@ -155,11 +155,8 @@ void ShopForm::loadLast()
|
||||
}
|
||||
}
|
||||
|
||||
void ShopForm::loadButtons()
|
||||
void ShopForm::loadButtons(const ShopSettingsPtr& settings)
|
||||
{
|
||||
SettingsService srv("SHOP");
|
||||
ShopSettingsPtr settings = srv.loadSettings<ShopSettings>();
|
||||
|
||||
Service<FavoritItem> srvFav;
|
||||
QMap<QString, FavoritItemPtr> btnMap;
|
||||
|
||||
@@ -234,6 +231,19 @@ void ShopForm::setEetStatusText(const QString &statusText)
|
||||
ui->lblEetState->setText(statusText);
|
||||
}
|
||||
|
||||
void ShopForm::setupForm()
|
||||
{
|
||||
SettingsService srv("SHOP");
|
||||
ShopSettingsPtr settings = srv.loadSettings<ShopSettings>();
|
||||
|
||||
ui->spnCount->setVisible(settings->showCount());
|
||||
ui->lblCount->setVisible(settings->showCount());
|
||||
|
||||
loadLast();
|
||||
fillRaceiptCombo();
|
||||
loadButtons(settings);
|
||||
}
|
||||
|
||||
void ShopForm::on_directSale_clicked()
|
||||
{
|
||||
SettingsService srv("SHOP");
|
||||
|
||||
Reference in New Issue
Block a user