From c129a8520aab9502a1469cb3dc3dfa9595ff72ba Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 18 Oct 2018 15:24:24 +0200 Subject: [PATCH] add some more details to ConfigreThingPage --- .../ui/devicepages/ConfigureThingPage.qml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/nymea-app/ui/devicepages/ConfigureThingPage.qml b/nymea-app/ui/devicepages/ConfigureThingPage.qml index 423c1865..20c68c38 100644 --- a/nymea-app/ui/devicepages/ConfigureThingPage.qml +++ b/nymea-app/ui/devicepages/ConfigureThingPage.qml @@ -63,13 +63,41 @@ Page { ColumnLayout { 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 { Layout.fillWidth: true Layout.leftMargin: app.margins Layout.rightMargin: app.margins Layout.topMargin: app.margins - text: qsTr("Thing parameters").toUpperCase() + text: qsTr("Thing parameters") color: app.accentColor + visible: root.deviceClass.paramTypes.count > 0 } Repeater {