From 9f4d4647bad7548546f7b5ae6c2b3c61c627ba9d Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 19 Jun 2023 16:01:02 +0200 Subject: [PATCH] Improve param delegates --- nymea-app/ui/delegates/ParamDelegate.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nymea-app/ui/delegates/ParamDelegate.qml b/nymea-app/ui/delegates/ParamDelegate.qml index a68dd94a..072e16b1 100644 --- a/nymea-app/ui/delegates/ParamDelegate.qml +++ b/nymea-app/ui/delegates/ParamDelegate.qml @@ -59,14 +59,17 @@ ItemDelegate { && loader.sourceComponent !== stringComponent Label { id: nameLabel - Layout.fillWidth: parent.labelFillsWidth + Layout.fillWidth: true//parent.labelFillsWidth // Layout.minimumWidth: parent.width / 2 text: root.paramType.displayName + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + font: Style.smallFont elide: Text.ElideRight } Loader { id: loader Layout.fillWidth: !parent.labelFillsWidth + Layout.maximumWidth: parent.width / 2 sourceComponent: { print("Loading ParamDelegate"); print("Writable:", root.writable, "type:", root.paramType.type, "min:", root.paramType.minValue, "max:", root.paramType.maxValue, "value:", root.param.value)