adding a signal/slot for clearing all items
This commit is contained in:
parent
1b8e8202a1
commit
441ec22542
4 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue