Files
qt-creator/share/qtcreator/qmldesigner/effectMakerQmlSources/ValueVec2.qml
Mahmoud Badri 00aad5e89b QmlDesigner: Effect maker UI tweaks
- Corrected property name font size
- Disabled zoom controls when not needed
- Updated Zoom Fit icon
- Show vec2, 3, and 4 properties in 1 line

Change-Id: I6d5474163b708790b61b6d3462068b138431bd49
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-07 09:36:40 +00:00

89 lines
2.1 KiB
QML

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
import QtQuick.Layouts
import QtQuickDesignerTheme
import StudioControls as StudioControls
import StudioTheme 1.0 as StudioTheme
import EffectMakerBackend
RowLayout {
width: parent.width
spacing: 0
StudioControls.RealSpinBox {
id: vX
Layout.fillWidth: true
Layout.minimumWidth: 30
Layout.maximumWidth: 60
actionIndicatorVisible: false
spinBoxIndicatorVisible: false
inputHAlignment: Qt.AlignHCenter
realFrom: uniformMinValue.x
realTo: uniformMaxValue.x
realValue: uniformValue.x
realStepSize: .01
decimals: 2
onRealValueModified: uniformValue.x = realValue
}
Item { // spacer
Layout.fillWidth: true
Layout.minimumWidth: 2
Layout.maximumWidth: 10
}
Text {
text: qsTr("X")
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.baseFontSize
Layout.alignment: Qt.AlignVCenter
}
Item { // spacer
Layout.fillWidth: true
Layout.minimumWidth: 10
Layout.maximumWidth: 20
}
StudioControls.RealSpinBox {
id: vY
Layout.fillWidth: true
Layout.minimumWidth: 30
Layout.maximumWidth: 60
actionIndicatorVisible: false
spinBoxIndicatorVisible: false
inputHAlignment: Qt.AlignHCenter
realFrom: uniformMinValue.y
realTo: uniformMaxValue.y
realValue: uniformValue.y
realStepSize: .01
decimals: 2
onRealValueModified: uniformValue.y = realValue
}
Item { // spacer
Layout.fillWidth: true
Layout.minimumWidth: 2
Layout.maximumWidth: 10
}
Text {
text: qsTr("Y")
color: StudioTheme.Values.themeTextColor
font.pixelSize: StudioTheme.Values.baseFontSize
Layout.alignment: Qt.AlignVCenter
}
Item { // spacer
Layout.fillWidth: true
Layout.minimumWidth: 10
}
}