From 9085fe72d7a8879e5d02d9696df2613605ceb0a6 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 14 Jun 2021 13:23:23 +0200 Subject: [PATCH] fix(StatusListItem): various fixes w.r.t. sensor, icon size etc This also exposes `statusListItemSubTitle` for more control over it's appearance, if needed. --- ui/StatusQ/src/StatusQ/Components/StatusListItem.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusListItem.qml b/ui/StatusQ/src/StatusQ/Components/StatusListItem.qml index 8f92cf02ad..fe593a6cb2 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusListItem.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusListItem.qml @@ -26,11 +26,15 @@ Rectangle { color: Theme.palette.primaryColor3 } } - property StatusImageSettings image: StatusImageSettings {} + property StatusImageSettings image: StatusImageSettings { + width: 40 + height: 40 + } property string label: "" property alias sensor: sensor property alias statusListItemTitle: statusListItemTitle + property alias statusListItemSubTitle: statusListItemSubTitle property alias statusListItemComponentsSlot: statusListItemComponentsSlot property list components @@ -47,7 +51,7 @@ Rectangle { id: sensor anchors.fill: parent - cursorShape: Qt.PointingHandCursor + cursorShape: enabled ? Qt.PointingHandCursor : Qt.ArrowCursor acceptedButtons: Qt.LeftButton | Qt.RightButton hoverEnabled: true @@ -76,6 +80,8 @@ Rectangle { id: statusRoundedImage StatusRoundedImage { image.source: statusListItem.image.source + image.height: statusListItem.image.height + image.width: statusListItem.image.width } }