setup move_item_from_service in slide_model
I'll need to keep working on this but a basic sorta working function of moving the order of items in the Rust model is here.
This commit is contained in:
parent
85285b7d02
commit
d9dbefcbe5
3 changed files with 157 additions and 3 deletions
|
@ -342,6 +342,8 @@ bool ServiceItemModel::moveRows(int sourceIndex, int destIndex, int count) {
|
|||
QModelIndex idx = index(destIndex);
|
||||
ServiceItem *item = m_items[idx.row()];
|
||||
emit rowMoved(sourceIndex, destIndex, *item);
|
||||
QVariantMap map = getItem(destIndex);
|
||||
emit rowMovedRust(sourceIndex, destIndex, map);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue