diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2020-03-04 08:06:42 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2020-03-04 08:23:58 +0000 |
commit | ff44060f5e52e863df24576a574f10e66061a299 (patch) | |
tree | 5386b72a5e64655b9cc23cfdcf868989cd8797ce /basicsuite/camera/CameraControlButton.qml | |
parent | 5e2ae18ef11b97187dac110fe1ac7a636974fe85 (diff) |
Change more function syntax for Connection
Implicitly defined onFoo properties in Connections are deprecated.
Change-Id: I810de65fc69b2704904b9261663ae66afe8429fc
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
Diffstat (limited to 'basicsuite/camera/CameraControlButton.qml')
-rw-r--r-- | basicsuite/camera/CameraControlButton.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basicsuite/camera/CameraControlButton.qml b/basicsuite/camera/CameraControlButton.qml index 58cc118..e4ca4bc 100644 --- a/basicsuite/camera/CameraControlButton.qml +++ b/basicsuite/camera/CameraControlButton.qml @@ -90,7 +90,7 @@ MouseArea { Connections { target: root - onContentScaleChanged: valueTxt.font.pixelSize = Math.round(18 * root.contentScale) + function onContentScaleChanged() { valueTxt.font.pixelSize = Math.round(18 * root.contentScale) } } onTextChanged: font.pixelSize = Math.round(18 * root.contentScale) |