2023-08-28 15:02:54 +03:00
|
|
|
// 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
|
2024-02-01 14:27:45 +02:00
|
|
|
import HelperWidgets as HelperWidgets
|
2023-08-28 15:02:54 +03:00
|
|
|
import StudioControls as StudioControls
|
2024-01-16 12:30:29 +01:00
|
|
|
import StudioTheme as StudioTheme
|
2024-01-26 14:55:50 +02:00
|
|
|
import EffectComposerBackend
|
2023-08-28 15:02:54 +03:00
|
|
|
|
|
|
|
|
Row {
|
|
|
|
|
width: parent.width
|
|
|
|
|
spacing: 5
|
|
|
|
|
|
2024-02-01 14:27:45 +02:00
|
|
|
HelperWidgets.DoubleSpinBox {
|
2023-08-28 15:02:54 +03:00
|
|
|
id: spinBox
|
|
|
|
|
|
2024-03-19 14:52:20 +02:00
|
|
|
// value: uniformValue binding can get overwritten by normal operation of the control
|
|
|
|
|
property double resetValue: uniformValue
|
|
|
|
|
onResetValueChanged: value = resetValue
|
|
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
width: 60
|
2023-08-28 15:02:54 +03:00
|
|
|
spinBoxIndicatorVisible: false
|
|
|
|
|
inputHAlignment: Qt.AlignHCenter
|
2024-02-01 14:27:45 +02:00
|
|
|
minimumValue: uniformMinValue
|
|
|
|
|
maximumValue: uniformMaxValue
|
2023-08-28 15:02:54 +03:00
|
|
|
value: uniformValue
|
2024-02-01 14:27:45 +02:00
|
|
|
stepSize: 1
|
|
|
|
|
decimals: 0
|
2024-03-19 14:52:20 +02:00
|
|
|
onValueModified: uniformValue = Math.round(value)
|
2023-08-28 15:02:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StudioControls.Slider {
|
|
|
|
|
id: slider
|
|
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
width: parent.width - 100
|
|
|
|
|
visible: width > 20
|
2023-08-28 15:02:54 +03:00
|
|
|
labels: false
|
|
|
|
|
actionIndicatorVisible: false
|
2023-09-07 15:14:17 +03:00
|
|
|
handleLabelVisible: false
|
2023-08-28 15:02:54 +03:00
|
|
|
from: uniformMinValue
|
|
|
|
|
to: uniformMaxValue
|
|
|
|
|
value: uniformValue
|
|
|
|
|
onMoved: {
|
2024-01-25 13:44:56 +02:00
|
|
|
uniformValue = Math.round(value)
|
|
|
|
|
spinBox.value = Math.round(value)
|
2023-08-28 15:02:54 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|