summaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols')
-rw-r--r--examples/quickcontrols/controls/uiforms/qml/History.qml2
-rw-r--r--examples/quickcontrols/controls/uiforms/qml/Notes.qml2
-rw-r--r--examples/quickcontrols/controls/uiforms/qml/Settings.qml2
-rw-r--r--examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml6
-rw-r--r--examples/quickcontrols/extras/gallery/qml/gallery.qml5
5 files changed, 10 insertions, 7 deletions
diff --git a/examples/quickcontrols/controls/uiforms/qml/History.qml b/examples/quickcontrols/controls/uiforms/qml/History.qml
index be7a5808b..031f35bec 100644
--- a/examples/quickcontrols/controls/uiforms/qml/History.qml
+++ b/examples/quickcontrols/controls/uiforms/qml/History.qml
@@ -79,7 +79,7 @@ HistoryForm {
Connections {
target: CustomerModel.selection
- onSelectionChanged: form.readData()
+ function onSelectionChanged() { form.readData() }
}
Component.onCompleted: readData()
diff --git a/examples/quickcontrols/controls/uiforms/qml/Notes.qml b/examples/quickcontrols/controls/uiforms/qml/Notes.qml
index c7f326f7f..ae89482f5 100644
--- a/examples/quickcontrols/controls/uiforms/qml/Notes.qml
+++ b/examples/quickcontrols/controls/uiforms/qml/Notes.qml
@@ -79,7 +79,7 @@ NotesForm {
Connections {
target: CustomerModel.selection
- onSelectionChanged: form.readData()
+ function onSelectionChanged() { form.readData() }
}
Component.onCompleted: readData()
diff --git a/examples/quickcontrols/controls/uiforms/qml/Settings.qml b/examples/quickcontrols/controls/uiforms/qml/Settings.qml
index eefab2a15..1c3741aca 100644
--- a/examples/quickcontrols/controls/uiforms/qml/Settings.qml
+++ b/examples/quickcontrols/controls/uiforms/qml/Settings.qml
@@ -99,7 +99,7 @@ SettingsForm {
Connections {
target: CustomerModel.selection
- onSelectionChanged: form.readData()
+ function onSelectionChanged() { form.readData() }
}
Component.onCompleted: readData()
diff --git a/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml b/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml
index bfb7a0c75..63e513552 100644
--- a/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml
+++ b/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml
@@ -115,9 +115,9 @@ ControlView {
// Called to update the style after the user has edited a property.
Connections {
target: customizerItem
- onMinimumValueAngleChanged: __style.minimumValueAngle = customizerItem.minimumValueAngle
- onMaximumValueAngleChanged: __style.maximumValueAngle = customizerItem.maximumValueAngle
- onLabelStepSizeChanged: __style.tickmarkStepSize = __style.labelStepSize = customizerItem.labelStepSize
+ function onMinimumValueAngleChanged() { __style.minimumValueAngle = customizerItem.minimumValueAngle }
+ function onMaximumValueAngleChanged() { __style.maximumValueAngle = customizerItem.maximumValueAngle }
+ function onLabelStepSizeChanged() { __style.tickmarkStepSize = __style.labelStepSize = customizerItem.labelStepSize }
}
Behavior on value {
diff --git a/examples/quickcontrols/extras/gallery/qml/gallery.qml b/examples/quickcontrols/extras/gallery/qml/gallery.qml
index 0f4d2b710..c7d0a1948 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 {