Files
qt-creator/share/qtcreator/qmldesigner/effectMakerQmlSources/ValueInt.qml
Henning Gruendl 316e48fc50 QmlDesigner: Remove version number from imports
Task-number: QDS-11177
Change-Id: I94a537af1d55d503aa04dd79c6194ef1a0647e83
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-17 08:01:32 +00:00

43 lines
1019 B
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 StudioControls as StudioControls
import StudioTheme as StudioTheme
import EffectMakerBackend
Row {
width: parent.width
spacing: 5
StudioControls.SpinBox {
id: spinBox
width: 60
actionIndicatorVisible: false
spinBoxIndicatorVisible: false
inputHAlignment: Qt.AlignHCenter
from: uniformMinValue
to: uniformMaxValue
value: uniformValue
onValueModified: uniformValue = value
}
StudioControls.Slider {
id: slider
width: parent.width - 100
visible: width > 20
labels: false
actionIndicatorVisible: false
handleLabelVisible: false
from: uniformMinValue
to: uniformMaxValue
value: uniformValue
onMoved: {
uniformValue = value
spinBox.value = value
}
}
}