add some more details to ConfigreThingPage

This commit is contained in:
Michael Zanetti 2018-10-18 15:24:24 +02:00
parent df746d9157
commit c129a8520a

View File

@ -63,13 +63,41 @@ Page {
ColumnLayout { ColumnLayout {
width: parent.width width: parent.width
Label {
Layout.fillWidth: true
Layout.margins: app.margins
text: qsTr("Thing information")
color: app.accentColor
}
RowLayout {
Layout.leftMargin: app.margins; Layout.rightMargin: app.margins
Label {
text: qsTr("Vendor:")
Layout.fillWidth: true
}
Label {
text: engine.deviceManager.vendors.getVendor(root.deviceClass.vendorId).displayName
}
}
RowLayout {
Layout.leftMargin: app.margins; Layout.rightMargin: app.margins
Label {
text: qsTr("Type")
Layout.fillWidth: true
}
Label {
text: root.deviceClass.displayName
}
}
Label { Label {
Layout.fillWidth: true Layout.fillWidth: true
Layout.leftMargin: app.margins Layout.leftMargin: app.margins
Layout.rightMargin: app.margins Layout.rightMargin: app.margins
Layout.topMargin: app.margins Layout.topMargin: app.margins
text: qsTr("Thing parameters").toUpperCase() text: qsTr("Thing parameters")
color: app.accentColor color: app.accentColor
visible: root.deviceClass.paramTypes.count > 0
} }
Repeater { Repeater {