Debian Codegraph @

src/ui/SliderGroup.qml

raw
1 import QtQuick 2.4
2 import QtQuick.Layouts 1.3
3 import QtQuick.Controls 2.0
4
5 import sfxr 1.0
6
7 ColumnLayout {
8 id: root
9 property string text
10 property Sound sound
11 property ListModel model
12
13 Label {
14 Layout.fillWidth: true
15 text: root.text
16 font.bold: true
17 }
18
19 Repeater {
20 model: root.model
21 Row {
22 width: parent.width
23 Label {
24 text: model.text
25 width: parent.width / 3
26 anchors.verticalCenter: slider.verticalCenter
27 horizontalAlignment: Qt.AlignRight
28 }
29 SoundSlider {
30 id: slider
31 sound: root.sound
32 soundProperty: model.soundProperty
33 bipolar: model.bipolar === true
34 width: parent.width * 2 / 3
35 }
36 }
37 }
38 }