Products linked with rests

This commit is contained in:
2023-04-14 08:37:59 +02:00
parent 5264238212
commit baefd64ce6
4 changed files with 37 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
RestsViewModel::RestsViewModel(QObject *parent)
: QObject{parent}
{
connect(m_restsModel, &BaseModel::dataChanged, this, &RestsViewModel::productsChanged);
connect(m_productsModel, &BaseModel::dataChanged, this, &RestsViewModel::productsChanged);
connect(settings(), &SettingsService::selectedStoreIdChanged, this, &RestsViewModel::productsChanged);
}