diff options
Diffstat (limited to 'src/imports/effects_qt6/designer/MaskedBlurEffectSpecifics.qml')
-rw-r--r-- | src/imports/effects_qt6/designer/MaskedBlurEffectSpecifics.qml | 57 |
1 files changed, 33 insertions, 24 deletions
diff --git a/src/imports/effects_qt6/designer/MaskedBlurEffectSpecifics.qml b/src/imports/effects_qt6/designer/MaskedBlurEffectSpecifics.qml index 37bc3c1..c075e6f 100644 --- a/src/imports/effects_qt6/designer/MaskedBlurEffectSpecifics.qml +++ b/src/imports/effects_qt6/designer/MaskedBlurEffectSpecifics.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,12 +42,12 @@ Column { caption: qsTr("Masked Blur") SectionLayout { - rows: 2 - Label { + PropertyLabel { text: qsTr("Radius") - toolTip: qsTr("The distance of the neighboring pixels which affect the blurring of " + tooltip: qsTr("The distance of the neighboring pixels which affect the blurring of " + "an individual pixel. A larger radius increases the blur effect.") } + SecondColumnLayout { SpinBox { backendValue: backendValues.radius @@ -54,16 +55,19 @@ Column { minimumValue: 0 maximumValue: 100 stepSize: 1 + implicitWidth: StudioTheme.Values.twoControlColumnWidth + + StudioTheme.Values.actionIndicatorWidth } - ExpandingSpacer { - } + + ExpandingSpacer {} } - Label { + PropertyLabel { text: qsTr("Samples") - toolTip: qsTr("Samples per pixel for blur calculation. A larger value produces " + tooltip: qsTr("Samples per pixel for blur calculation. A larger value produces " + "better quality, but is slower to render.") } + SecondColumnLayout { SpinBox { backendValue: backendValues.samples @@ -71,24 +75,28 @@ Column { minimumValue: 0 maximumValue: 1000 stepSize: 1 + implicitWidth: StudioTheme.Values.twoControlColumnWidth + + StudioTheme.Values.actionIndicatorWidth } - ExpandingSpacer { - } + + ExpandingSpacer {} } - Label { - text: qsTr("Mask Source") - toolTip: qsTr("The component that controls the final intensity of the blur.") + PropertyLabel { + text: qsTr("Mask source") + tooltip: qsTr("The component that controls the final intensity of the blur.") } + SecondColumnLayout { ItemFilterComboBox { typeFilter: "QtQuick.Item" validator: RegExpValidator { regExp: /(^$|^[a-z_]\w*)/ } backendValue: backendValues.maskSource - Layout.fillWidth: true - } - ExpandingSpacer { + implicitWidth: StudioTheme.Values.singleControlColumnWidth + + StudioTheme.Values.actionIndicatorWidth } + + ExpandingSpacer {} } } } @@ -99,20 +107,21 @@ Column { caption: qsTr("Caching") 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 {} } } } |