From ff44060f5e52e863df24576a574f10e66061a299 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 4 Mar 2020 08:06:42 +0200 Subject: Change more function syntax for Connection Implicitly defined onFoo properties in Connections are deprecated. Change-Id: I810de65fc69b2704904b9261663ae66afe8429fc Reviewed-by: Kari Oikarinen --- basicsuite/camera/CameraControlButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basicsuite/camera/CameraControlButton.qml') 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) -- cgit v1.2.3