blob: 56881b7680b76a4710c8c88efee4b880a066020d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0
RowLayout {
property int value
property string role
onRoleChanged: sliderName.text = role
onValueChanged: {
sliderValue.text = value + " %"
sliderControl.value = value;
}
//id: slider_" + name + "
Layout.minimumHeight: 75
Label {
id: sliderName
font.pixelSize: 24
text: role
Layout.minimumWidth: 150
}
Label {
id: sliderValue
//id: slider_" + name + "_textvalue
font.pixelSize: 24
text: "0 %"
}
Slider {
id: sliderControl
//id: slider_" + name + "_slider
Layout.fillWidth: true
from: 0
to: 100
stepSize: 1
snapMode: Slider.SnapOnRelease
onValueChanged: {
//slider_" + name + "_textvalue.text = value + \" %\"
//mixer.setVolume(\"" + name + "\", value)
}
//Component.onCompleted: {
//mixer.getVolume(\"" + name + "\")
//}
}
}
|