fix(StatusListItem): various fixes w.r.t. sensor, icon size etc
This also exposes `statusListItemSubTitle` for more control over it's appearance, if needed.
This commit is contained in:
parent
04e74609f8
commit
9085fe72d7
|
@ -26,11 +26,15 @@ Rectangle {
|
||||||
color: Theme.palette.primaryColor3
|
color: Theme.palette.primaryColor3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
property StatusImageSettings image: StatusImageSettings {}
|
property StatusImageSettings image: StatusImageSettings {
|
||||||
|
width: 40
|
||||||
|
height: 40
|
||||||
|
}
|
||||||
property string label: ""
|
property string label: ""
|
||||||
|
|
||||||
property alias sensor: sensor
|
property alias sensor: sensor
|
||||||
property alias statusListItemTitle: statusListItemTitle
|
property alias statusListItemTitle: statusListItemTitle
|
||||||
|
property alias statusListItemSubTitle: statusListItemSubTitle
|
||||||
property alias statusListItemComponentsSlot: statusListItemComponentsSlot
|
property alias statusListItemComponentsSlot: statusListItemComponentsSlot
|
||||||
|
|
||||||
property list<Item> components
|
property list<Item> components
|
||||||
|
@ -47,7 +51,7 @@ Rectangle {
|
||||||
id: sensor
|
id: sensor
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: enabled ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
|
@ -76,6 +80,8 @@ Rectangle {
|
||||||
id: statusRoundedImage
|
id: statusRoundedImage
|
||||||
StatusRoundedImage {
|
StatusRoundedImage {
|
||||||
image.source: statusListItem.image.source
|
image.source: statusListItem.image.source
|
||||||
|
image.height: statusListItem.image.height
|
||||||
|
image.width: statusListItem.image.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue