adding a signal/slot for clearing all items

This commit is contained in:
Chris Cochrun 2023-01-27 16:44:46 -06:00
parent 1b8e8202a1
commit 441ec22542
4 changed files with 7 additions and 1 deletions

View file

@ -159,6 +159,10 @@ int main(int argc, char *argv[])
SIGNAL(rowRemoved(const int&, const ServiceItem&)),
slideModel.get(),
SLOT(removeServiceItem(const int&, const ServiceItem&)));
QObject::connect(serviceItemModel.get(),
SIGNAL(allRemoved()),
slideModel.get(),
SLOT(clearAll()));
bool loading = serviceItemModel.get()->loadLastSaved();