Skip to content

Commit 5bde065

Browse files
committed
Set width and height of monitor models
1 parent 09362ed commit 5bde065

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/internal/ListMonitor.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Rectangle {
1717
border.color: Qt.rgba(0.765, 0.8, 0.85, 1)
1818
radius: 5
1919
visible: model ? model.visible : true
20+
onWidthChanged: if(model) model.width = width
21+
onHeightChanged: if(model) model.height = height
2022

2123
QtObject {
2224
id: priv

src/internal/ValueMonitor.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Rectangle {
1515
width: layout.implicitWidth + priv.horizontalMargins * 2
1616
height: layout.implicitHeight + priv.verticalMargins * 2
1717
visible: model ? model.visible : true
18+
onWidthChanged: if(model) model.width = width
19+
onHeightChanged: if(model) model.height = height
1820

1921
QtObject {
2022
id: priv

0 commit comments

Comments
 (0)