Skip to content

Commit 79b1767

Browse files
committed
Fix "Binding on indicator is not deferred"
Fixes: "Binding on indicator is not deferred as requested by the DeferredPropertyNames class info because it constitutes a group property." This fixes one instance of the Binding not deferred warning. It also shows better form - where you should not infer the implementation of a QML Item from another QML file that uses it. Alter internals using toplevel properties instead.
1 parent d68b543 commit 79b1767

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

resources/BaseComponents/SmallCheckBox.qml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import QtQuick.Templates as T
99
T.CheckBox {
1010
id: control
1111

12+
property alias indicatorHeight: control.indicator.height
13+
property alias indicatorWidth: control.indicator.width
14+
1215
spacing: 2
1316
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding)
1417
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, implicitContentHeight + topPadding + bottomPadding, implicitIndicatorHeight + topPadding + bottomPadding)

resources/ObservationTabComponents/ObservationFilterColumn.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ ColumnLayout {
1818
model: codes
1919

2020
SmallCheckBox {
21-
indicator.width: 15
22-
indicator.height: 15
21+
indicatorWidth: 15
22+
indicatorHeight: 15
2323
spacing: 2
2424
padding: 2
2525
verticalPadding: 0.2

0 commit comments

Comments
 (0)