2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
2023-01-04 08:52:22 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-10-09 12:43:41 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
2013-10-09 12:43:41 +02:00
|
|
|
import HelperWidgets 2.0
|
2021-06-21 16:48:19 +02:00
|
|
|
import StudioControls 1.0 as StudioControls
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
2013-10-09 12:43:41 +02:00
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
Section {
|
2021-06-21 16:48:19 +02:00
|
|
|
caption: qsTr("Flow")
|
|
|
|
|
|
2013-10-09 12:43:41 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
2023-02-08 16:57:37 +01:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Spacing")
|
|
|
|
|
tooltip: qsTr("Sets the spacing between flow items.")
|
|
|
|
|
}
|
2013-10-09 12:43:41 +02:00
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
SpinBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.spacing
|
|
|
|
|
minimumValue: -4000
|
|
|
|
|
maximumValue: 4000
|
|
|
|
|
decimals: 0
|
2013-10-09 12:43:41 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2013-10-09 12:43:41 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-08 16:57:37 +01:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Flow")
|
|
|
|
|
tooltip: qsTr("Sets the direction of flow items.")
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2013-10-09 12:43:41 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
ComboBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
|
|
|
|
backendValue: backendValues.flow
|
|
|
|
|
model: ["LeftToRight", "TopToBottom"]
|
|
|
|
|
scope: "Flow"
|
2019-08-21 16:37:15 +02:00
|
|
|
}
|
2013-10-09 12:43:41 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2013-10-09 12:43:41 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-08 16:57:37 +01:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Layout direction")
|
|
|
|
|
tooltip: qsTr("Sets in which direction items in the flow are placed.")
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2013-10-09 12:43:41 +02:00
|
|
|
SecondColumnLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
ComboBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
|
|
|
|
backendValue: backendValues.layoutDirection
|
|
|
|
|
model: ["LeftToRight", "RightToLeft"]
|
|
|
|
|
scope: "Qt"
|
2013-10-09 12:43:41 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 12:43:41 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-04-21 11:41:55 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PaddingSection {}
|
2013-10-09 12:43:41 +02:00
|
|
|
}
|