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:54 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
2013-10-09 12:43:54 +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:54 +02:00
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
Section {
|
2021-06-21 16:48:19 +02:00
|
|
|
caption: qsTr("Row")
|
|
|
|
|
|
2013-10-09 12:43:54 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
2023-02-08 17:58:37 +01:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Spacing")
|
|
|
|
|
tooltip: qsTr("Sets the spacing between items in the row.")
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.spacing
|
|
|
|
|
minimumValue: -4000
|
|
|
|
|
maximumValue: 4000
|
|
|
|
|
decimals: 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PropertyLabel {
|
2020-07-01 16:33:23 +02:00
|
|
|
text: qsTr("Layout direction")
|
2023-02-08 17:58:37 +01:00
|
|
|
tooltip: qsTr("Sets in which direction items in the row are placed.")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.layoutDirection.isAvailable
|
2013-10-09 12:43:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
ComboBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
2013-10-09 12:43:54 +02:00
|
|
|
backendValue: backendValues.layoutDirection
|
2021-06-21 16:48:19 +02:00
|
|
|
model: ["LeftToRight", "RightToLeft"]
|
2013-12-16 12:50:32 +01:00
|
|
|
scope: "Qt"
|
2020-09-02 18:34:22 +02:00
|
|
|
enabled: backendValue.isAvailable
|
2013-10-09 12:43:54 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2013-10-09 12:43:54 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-04-21 11:41:55 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PaddingSection {}
|
2013-10-09 12:43:54 +02:00
|
|
|
}
|