Use required properties
This commit is contained in:
@@ -40,9 +40,11 @@ ColumnLayout {
|
|||||||
model: root.connection.getSupportedRoomVersions()
|
model: root.connection.getSupportedRoomVersions()
|
||||||
|
|
||||||
delegate: FormCard.FormTextDelegate {
|
delegate: FormCard.FormTextDelegate {
|
||||||
|
id: versionDelegate
|
||||||
|
required property var modelData
|
||||||
text: modelData.id
|
text: modelData.id
|
||||||
contentItem.children: QQC2.Label {
|
contentItem.children: QQC2.Label {
|
||||||
text: modelData.status
|
text: versionDelegate.modelData.status
|
||||||
color: Kirigami.Theme.disabledTextColor
|
color: Kirigami.Theme.disabledTextColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user