From 169450aa2e9d9058686aab0f7cf54b728ecd6efa Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 18:47:45 +1000 Subject: feat: bar bluetooth devices --- widgets/AnchorText.qml | 2 +- widgets/BoxLayout.qml | 2 +- widgets/StyledRect.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets') 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 -- cgit v1.2.3-freya