aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-04-03 12:00:09 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2020-04-03 12:18:56 +0300
commitb3556c25ffdc64595e41d005b091776035134846 (patch)
tree87180139dda976ce6ea8f61a343670e323b58150
parentd2648237c7e3bfc03077b7b1e63c72dc24ff519c (diff)
Use function syntax for Connectionv5.15.0-beta4
Implicitly defined onFoo properties in Connections are deprecated. Change-Id: Id91f2f20a95e2b66cc0b8d2c2ce76d632c607f34 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--examples/virtualkeyboard/basic/content/AutoScroller.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/virtualkeyboard/basic/content/AutoScroller.qml b/examples/virtualkeyboard/basic/content/AutoScroller.qml
index b6b7924..9df74b7 100644
--- a/examples/virtualkeyboard/basic/content/AutoScroller.qml
+++ b/examples/virtualkeyboard/basic/content/AutoScroller.qml
@@ -97,8 +97,8 @@ Item {
Connections {
ignoreUnknownSignals: true
target: Qt.inputMethod
- onAnimatingChanged: if (inputItem && !Qt.inputMethod.animating) delayedLoading.restart()
- onKeyboardRectangleChanged: if (inputItem) delayedLoading.restart()
- onCursorRectangleChanged: if (inputItem && inputItem.activeFocus) delayedLoading.restart()
+ function onAnimatingChanged() { if (inputItem && !Qt.inputMethod.animating) delayedLoading.restart() }
+ function onKeyboardRectangleChanged() { if (inputItem) delayedLoading.restart() }
+ function onCursorRectangleChanged() { if (inputItem && inputItem.activeFocus) delayedLoading.restart() }
}
}