From 8784a2778063cf928b27a908f6580ed37cb4035d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 12 Feb 2021 08:53:00 +0100 Subject: Use functions as signal handlers when accessing parameters Injected signal handlers are bad practice because they aren't declared. Task-number: QTBUG-89943 Change-Id: I3a691f68342a199bd63034637aa7ed438e3a037b Reviewed-by: Fabian Kosmale (cherry picked from commit 4cc91a6a0e4f9063233a4d6554ae64855cf99c14) Reviewed-by: Qt Cherry-pick Bot --- tools/qmltime/linelaidout.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/qmltime/linelaidout.qml b/tools/qmltime/linelaidout.qml index 0e9da83087..e8ac636ed6 100644 --- a/tools/qmltime/linelaidout.qml +++ b/tools/qmltime/linelaidout.qml @@ -40,7 +40,7 @@ Item { font.pixelSize: 15 font.bold: true - onLineLaidOut: { + onLineLaidOut: (line)=> { line.x = (line.number % 7) * 70 line.y = Math.floor(line.number / 7.0) * 70 } -- cgit v1.2.3