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:
Chris Cochrun 2023-04-12 19:01:50 -05:00
parent 85285b7d02
commit d9dbefcbe5
3 changed files with 157 additions and 3 deletions

View file

@ -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;
}