aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/effects/designer/ZoomBlurEffectSpecifics.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/effects/designer/ZoomBlurEffectSpecifics.qml')
-rw-r--r--src/imports/effects/designer/ZoomBlurEffectSpecifics.qml98
1 files changed, 58 insertions, 40 deletions
diff --git a/src/imports/effects/designer/ZoomBlurEffectSpecifics.qml b/src/imports/effects/designer/ZoomBlurEffectSpecifics.qml
index 4dd0a3f..efa3f8e 100644
--- a/src/imports/effects/designer/ZoomBlurEffectSpecifics.qml
+++ b/src/imports/effects/designer/ZoomBlurEffectSpecifics.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2020 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Designer Components.
@@ -27,9 +27,10 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.15
+import QtQuick.Layouts 1.15
import HelperWidgets 2.0
-import QtQuick.Layouts 1.0
+import StudioTheme 1.0 as StudioTheme
Column {
anchors.left: parent.left
@@ -41,42 +42,45 @@ Column {
caption: qsTr("Zoom Blur")
SectionLayout {
- rows: 2
- Label {
+ PropertyLabel {
text: qsTr("Length")
- toolTip: qsTr("The maximum perceived amount of movement for each pixel. The amount "
+ tooltip: qsTr("The maximum perceived amount of movement for each pixel. The amount "
+ "is smaller near the center and reaches the specified value at the "
+ "edges.")
}
+
SecondColumnLayout {
SpinBox {
backendValue: backendValues.length
- Layout.preferredWidth: 80
decimals: 1
minimumValue: 0
maximumValue: 1000
stepSize: 1
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
- Label {
+ PropertyLabel {
text: qsTr("Samples")
- toolTip: qsTr("Samples per pixel to calculate blur. A larger value produces better "
+ tooltip: qsTr("Samples per pixel to calculate blur. A larger value produces better "
+ "quality, but is slower to render.")
}
+
SecondColumnLayout {
SpinBox {
backendValue: backendValues.samples
- Layout.preferredWidth: 80
decimals: 0
minimumValue: 0
maximumValue: 200
stepSize: 1
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
}
}
@@ -87,40 +91,52 @@ Column {
caption: qsTr("Offsets")
SectionLayout {
- rows: 2
- Label {
- text: qsTr("Horizontal offset")
- toolTip: qsTr("The horizontal offset in pixels for the blur direction center "
- + "point.")
+ PropertyLabel {
+ text: qsTr("Offset")
}
+
SecondColumnLayout {
SpinBox {
backendValue: backendValues.horizontalOffset
- Layout.preferredWidth: 80
decimals: 1
minimumValue: -1000
maximumValue: 1000
stepSize: 1
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
+
+ Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
+
+ ControlLabel {
+ //: The horizontal offset
+ text: qsTr("H", "horizontal")
+ tooltip: qsTr("The horizontal offset for the rendered shadow compared to the " +
+ "inner shadow component's horizontal position.")
}
- }
- Label {
- text: qsTr("Vertical offset")
- toolTip: qsTr("The vertical offset in pixels for the blur direction center point.")
- }
- SecondColumnLayout {
+ Spacer { implicitWidth: StudioTheme.Values.controlGap }
+
SpinBox {
backendValue: backendValues.verticalOffset
- Layout.preferredWidth: 80
decimals: 1
minimumValue: -1000
maximumValue: 1000
stepSize: 1
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
+
+ Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
+
+ ControlLabel {
+ //: The vertical offset
+ text: qsTr("V", "vertical")
+ tooltip: qsTr("The vertical offset for the rendered shadow compared to the " +
+ "inner shadow component's vertical position. ")
}
+
+ ExpandingSpacer {}
}
}
}
@@ -131,36 +147,38 @@ Column {
caption: qsTr("Caching and Border")
SectionLayout {
- rows: 2
- Label {
+ PropertyLabel {
text: qsTr("Cached")
- toolTip: qsTr("Caches the effect output pixels to improve the rendering "
+ tooltip: qsTr("Caches the effect output pixels to improve the rendering "
+ "performance.")
}
SecondColumnLayout {
CheckBox {
- Layout.fillWidth: true
backendValue: backendValues.cached
text: backendValues.cached.valueToString
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
- Label {
+ PropertyLabel {
text: qsTr("Transparent border")
- toolTip: qsTr("Pads the exterior of the item with a transparent edge, making "
+ tooltip: qsTr("Pads the exterior of the component with a transparent edge, making "
+ "sampling outside the source texture use transparency instead of "
+ "the edge pixels.")
}
+
SecondColumnLayout {
CheckBox {
- Layout.fillWidth: true
backendValue: backendValues.transparentBorder
text: backendValues.transparentBorder.valueToString
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
}
- ExpandingSpacer {
- }
+
+ ExpandingSpacer {}
}
}
}