diff options
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/AnchorText.qml | 2 | ||||
| -rw-r--r-- | widgets/BoxLayout.qml | 2 | ||||
| -rw-r--r-- | widgets/StyledRect.qml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/widgets/AnchorText.qml b/widgets/AnchorText.qml index a0342e8..03514dd 100644 --- a/widgets/AnchorText.qml +++ b/widgets/AnchorText.qml @@ -5,7 +5,7 @@ StyledText { id: root required property Item prevAnchor - property bool vertical + property bool vertical: parent.vertical ?? false anchors.left: vertical ? undefined : prevAnchor.right anchors.leftMargin: vertical ? 0 : Appearance.padding.smaller diff --git a/widgets/BoxLayout.qml b/widgets/BoxLayout.qml index 2163000..d000bda 100644 --- a/widgets/BoxLayout.qml +++ b/widgets/BoxLayout.qml @@ -2,7 +2,7 @@ import "root:/config" import QtQuick.Layouts GridLayout { - property bool vertical: false + property bool vertical: parent.vertical ?? false // Propagate from parent property bool homogenous: false property int spacing: Appearance.spacing.small diff --git a/widgets/StyledRect.qml b/widgets/StyledRect.qml index 07c1e77..bb9824c 100644 --- a/widgets/StyledRect.qml +++ b/widgets/StyledRect.qml @@ -5,7 +5,7 @@ Rectangle { id: root property bool animate: false - property bool vertical: false // Convenience property for propagation to children + property bool vertical: parent.vertical ?? false // Convenience property for propagation to children color: "transparent" implicitWidth: childrenRect.width |