Skip to content

Commit aa34161

Browse files
Tom O'ReillyTom O'Reilly
authored andcommitted
upddate lighting as sliders are moved
1 parent f66b23c commit aa34161

1 file changed

Lines changed: 9 additions & 25 deletions

File tree

src/qt-mbgrdviz/main.qml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -277,37 +277,21 @@ Window {
277277
id: settings3D
278278
anchors.fill: parent
279279
anchors.margins: 10
280-
intensity.onPressedChanged: {
281-
console.log('intensity pressed/released')
282-
if (!intensity.pressed) {
283-
console.log('RELEASED')
284-
updateLighting()
285-
}
286-
}
287280

288-
lightX.onPressedChanged: {
289-
console.log('intensity pressed/released')
290-
if (!lightX.pressed) {
291-
console.log('RELEASED')
292-
updateLighting()
293-
}
281+
intensity.onMoved: {
282+
updateLighting()
294283
}
295284

285+
lightX.onMoved: {
286+
updateLighting()
287+
}
296288

297-
lightY.onPressedChanged: {
298-
console.log('intensity pressed/released')
299-
if (!lightY.pressed) {
300-
console.log('RELEASED')
301-
updateLighting()
302-
}
289+
lightY.onMoved: {
290+
updateLighting()
303291
}
304292

305-
lightZ.onPressedChanged: {
306-
console.log('intensity pressed/released')
307-
if (!lightZ.pressed) {
308-
console.log('RELEASED')
309-
updateLighting()
310-
}
293+
lightZ.onMoved: {
294+
updateLighting()
311295
}
312296
}
313297

0 commit comments

Comments
 (0)