Files
qt-creator/share/qtcreator/qmldesigner/effectMakerQmlSources/ValueFloat.qml
Mahmoud Badri 1e00fdf9f9 QmlDesigner: Hide effect maker prop. slider's handle label
Change-Id: Ica266d0a9009ee4b5ba3e1cb1e9292f3b1091df7
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-07 16:39:45 +00:00

47 lines
1.2 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 QtQuickDesignerTheme
import StudioControls as StudioControls
import StudioTheme 1.0 as StudioTheme
import EffectMakerBackend
Row {
width: parent.width
spacing: 5
StudioControls.RealSpinBox {
id: spinBox
width: 60
actionIndicatorVisible: false
spinBoxIndicatorVisible: false
inputHAlignment: Qt.AlignHCenter
realFrom: uniformMinValue
realTo: uniformMaxValue
realValue: uniformValue
realStepSize: .01
decimals: 2
onRealValueModified: uniformValue = realValue
}
StudioControls.Slider {
id: slider
width: parent.width - 100
visible: width > 20
labels: false
decimals: 2
actionIndicatorVisible: false
handleLabelVisible: false
from: uniformMinValue
to: uniformMaxValue
value: uniformValue
onMoved: {
uniformValue = value
spinBox.realValue = value // binding isn't working for this property so update it
}
}
}