summaryrefslogtreecommitdiff
path: root/examples/quickcontrols/extras/gallery/qml/gallery.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols/extras/gallery/qml/gallery.qml')
-rw-r--r--examples/quickcontrols/extras/gallery/qml/gallery.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/quickcontrols/extras/gallery/qml/gallery.qml b/examples/quickcontrols/extras/gallery/qml/gallery.qml
index 0f4d2b71..c7d0a194 100644
--- a/examples/quickcontrols/extras/gallery/qml/gallery.qml
+++ b/examples/quickcontrols/extras/gallery/qml/gallery.qml
@@ -290,7 +290,10 @@ Window {
Connections {
target: recordingFlashTimer
- onTriggered: if (name == "Recording") indicator.active = !indicator.active
+ function onTriggered() {
+ if (name == "Recording")
+ indicator.active = !indicator.active
+ }
}
}
ControlLabel {