Show interfaces in thing classs details

This commit is contained in:
Michael Zanetti 2021-07-17 00:01:06 +02:00
parent 5da4fd1399
commit 5cbe0023fd

View File

@ -60,6 +60,20 @@ SettingsPageBase {
}
}
SettingsPageSectionHeader {
text: qsTr("Interfaces")
}
Repeater {
model: root.thingClass.interfaces
delegate: Label {
Layout.fillWidth: true
Layout.leftMargin: Style.margins
Layout.rightMargin: Style.margins
text: modelData
}
}
SettingsPageSectionHeader {
text: qsTr("Parameters")
visible: root.thingClass.paramTypes.count > 0