Skip to content

Commit f8ce864

Browse files
Tom O'ReillyTom O'Reilly
authored andcommitted
checkbox to enable/disable lights
1 parent a469497 commit f8ce864

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

src/qt-guilib/ui-components/Settings3D.qml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,29 @@ Item {
1212
property alias lightX: lightX
1313
property alias lightY: lightY
1414
property alias lightZ: lightZ
15-
15+
property alias lightsEnabled: lightsEnabled
16+
1617
ColumnLayout {
17-
18+
Label {
19+
text: qsTr('Lights enabled')
20+
fontSizeMode: Text.Fit
21+
font.pixelSize: 18
22+
}
23+
24+
CheckBox {
25+
id: lightsEnabled
26+
checked: true
27+
}
28+
29+
MenuSeparator { }
30+
1831
Label {
1932
text: qsTr("Intensity")
2033
fontSizeMode: Text.Fit
2134
font.pixelSize: 18
2235
}
23-
36+
37+
2438
Slider {
2539
id: intensity
2640
Layout.fillWidth: true

0 commit comments

Comments
 (0)