adding the removal of items work on the slides
This isn't finished yet, but the core is there. I have yet to fully remove slides after a service_item is removed.
This commit is contained in:
parent
7a36b70a6d
commit
f8ac7feea0
5 changed files with 35 additions and 10 deletions
|
@ -303,7 +303,9 @@ void ServiceItemModel::removeItems() {
|
|||
beginRemoveRows(QModelIndex(), i, i);
|
||||
m_items.removeAt(i);
|
||||
endRemoveRows();
|
||||
QVariantMap map = getItem(i);
|
||||
emit rowRemoved(i, *item);
|
||||
emit rowRemovedRust(i, map);
|
||||
qDebug() << "emitted removal of item:" << item->name();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -119,7 +119,9 @@ signals:
|
|||
void itemInserted(const int &, const ServiceItem &);
|
||||
void itemInsertedRust(const int &, const QVariantMap &);
|
||||
void rowMoved(const int &, const int &, const ServiceItem &);
|
||||
void rowMovedRust(const int &, const int &, const QVariantMap &);
|
||||
void rowRemoved(const int &, const ServiceItem &);
|
||||
void rowRemovedRust(const int &, const QVariantMap &);
|
||||
void allRemoved();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue