-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLesson7Options.qml
More file actions
41 lines (34 loc) · 817 Bytes
/
Lesson7Options.qml
File metadata and controls
41 lines (34 loc) · 817 Bytes
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
import QtQuick 2.7
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
Flow {
padding: 15
property var currentRenderer: undefined
function connectToRenderer(renderer) {
currentRenderer = renderer
lightsControl.connectToRenderer(renderer)
}
ColumnLayout {
id: columnLayout
spacing: 15
Label {
text: "Levels:"
font.pixelSize: 20
}
Slider {
id: toonLevel
from: 1.0
value: 5.0
to: 7.0
stepSize: 1.0
property real realValue: value
onValueChanged: {
currentRenderer.levels = realValue
}
}
LightControl {
id: lightsControl
Layout.columnSpan: 2
}
}
}