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
|
|
|
|
|
import StudioControls as StudioControls
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
|
|
|
|
import EffectMakerBackend
|
|
|
|
|
|
|
|
|
|
Row {
|
|
|
|
|
width: parent.width
|
|
|
|
|
spacing: 5
|
|
|
|
|
|
|
|
|
|
StudioControls.SpinBox {
|
|
|
|
|
id: spinBox
|
|
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
width: 60
|
2023-08-28 15:02:54 +03:00
|
|
|
actionIndicatorVisible: false
|
|
|
|
|
spinBoxIndicatorVisible: false
|
|
|
|
|
inputHAlignment: Qt.AlignHCenter
|
|
|
|
|
from: uniformMinValue
|
|
|
|
|
to: uniformMaxValue
|
|
|
|
|
value: uniformValue
|
|
|
|
|
onValueModified: uniformValue = value
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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: {
|
|
|
|
|
uniformValue = value
|
|
|
|
|
spinBox.value = value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|