using the C++ proxy function to get item from Rust Model
QMAP_QSTRING_QVARIANT doesn't automatically convert to a QVariantMap in QML. So we have to run it through C++ to make things work right.
This commit is contained in:
parent
31aec1ca47
commit
8619902644
2 changed files with 4 additions and 3 deletions
|
@ -68,7 +68,7 @@ Item {
|
|||
anchors.topMargin: Kirigami.Units.smallSpacing
|
||||
anchors.rightMargin: Kirigami.Units.smallSpacing * 2
|
||||
elide: Text.ElideRight
|
||||
text: ServiceItemModel.getItem(serviceItemId).name
|
||||
text: ServiceItemC.getRust(serviceItemId, ServiceItemModel).name
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue