2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 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-09-16 16:55:07 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
2013-09-16 16:55:07 +02:00
|
|
|
import HelperWidgets 2.0
|
2021-06-21 16:48:19 +02:00
|
|
|
import StudioTheme 1.0 as StudioTheme
|
2013-09-16 16:55:07 +02:00
|
|
|
|
|
|
|
|
Section {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
2013-10-08 17:20:05 +02:00
|
|
|
caption: qsTr("Advanced")
|
2013-09-16 16:55:07 +02:00
|
|
|
|
|
|
|
|
SectionLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2014-01-14 15:08:51 +01:00
|
|
|
visible: majorQtQuickVersion > 1
|
|
|
|
|
text: qsTr("Enabled")
|
2023-01-17 16:40:53 +01:00
|
|
|
tooltip: qsTr("Toggles if the component is enabled to receive mouse and keyboard input.")
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2014-01-14 15:08:51 +01:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
visible: majorQtQuickVersion > 1
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2014-01-14 15:08:51 +01:00
|
|
|
CheckBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2014-01-14 15:08:51 +01:00
|
|
|
backendValue: backendValues.enabled
|
2021-06-21 16:48:19 +02:00
|
|
|
text: backendValues.enabled.valueToString
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2014-01-14 15:08:51 +01:00
|
|
|
text: qsTr("Smooth")
|
2023-01-17 16:40:53 +01:00
|
|
|
tooltip: qsTr("Uses smooth filtering when the image is scaled or transformed.")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.smooth.isAvailable
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2014-01-14 15:08:51 +01:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
CheckBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2014-01-14 15:08:51 +01:00
|
|
|
backendValue: backendValues.smooth
|
2021-06-21 16:48:19 +02:00
|
|
|
text: backendValues.smooth.valueToString
|
2020-02-24 16:27:45 +01:00
|
|
|
enabled: backendValues.smooth.isAvailable
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2014-01-14 15:08:51 +01:00
|
|
|
text: qsTr("Antialiasing")
|
2023-01-17 16:40:53 +01:00
|
|
|
tooltip: qsTr("Refines the edges of the image.")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.antialiasing.isAvailable
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2014-01-14 15:08:51 +01:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
CheckBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2014-01-14 15:08:51 +01:00
|
|
|
backendValue: backendValues.antialiasing
|
2021-06-21 16:48:19 +02:00
|
|
|
text: backendValues.antialiasing.valueToString
|
2020-02-24 16:27:45 +01:00
|
|
|
enabled: backendValues.antialiasing.isAvailable
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2014-01-14 15:08:51 +01:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2020-04-24 13:22:55 +02:00
|
|
|
text: qsTr("Focus")
|
2021-03-18 13:55:35 +01:00
|
|
|
tooltip: qsTr("Sets focus on the component within the enclosing focus scope.")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.focus.isAvailable
|
2020-04-24 13:22:55 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2020-04-24 13:22:55 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
CheckBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2020-04-24 13:22:55 +02:00
|
|
|
backendValue: backendValues.focus
|
|
|
|
|
text: backendValues.focus.valueToString
|
|
|
|
|
enabled: backendValues.focus.isAvailable
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2020-04-24 13:22:55 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2021-07-02 10:36:07 +02:00
|
|
|
text: qsTr("Focus on tab")
|
2021-03-18 13:55:35 +01:00
|
|
|
tooltip: qsTr("Adds the component to the tab focus chain.")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.activeFocusOnTab.isAvailable
|
2020-04-24 13:22:55 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2020-04-24 13:22:55 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
CheckBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2020-04-24 13:22:55 +02:00
|
|
|
backendValue: backendValues.activeFocusOnTab
|
|
|
|
|
text: backendValues.activeFocusOnTab.valueToString
|
|
|
|
|
enabled: backendValues.activeFocusOnTab.isAvailable
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2020-04-24 13:22:55 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2021-07-02 10:36:07 +02:00
|
|
|
text: qsTr("Baseline offset")
|
2023-01-17 16:40:53 +01:00
|
|
|
tooltip: qsTr("Sets the position of the component's baseline in local coordinates.")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.baselineOffset.isAvailable
|
2020-04-24 13:22:55 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2020-04-24 13:22:55 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2020-04-24 13:22:55 +02:00
|
|
|
sliderIndicatorVisible: true
|
|
|
|
|
backendValue: backendValues.baselineOffset
|
|
|
|
|
hasSlider: true
|
|
|
|
|
decimals: 0
|
|
|
|
|
minimumValue: -1000
|
|
|
|
|
maximumValue: 1000
|
|
|
|
|
enabled: backendValues.baselineOffset.isAvailable
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2020-04-24 13:22:55 +02:00
|
|
|
}
|
2013-09-16 16:55:07 +02:00
|
|
|
}
|
|
|
|
|
}
|