From efd47f6ae97bcf26cef9d9404d12ce7a1b56031f Mon Sep 17 00:00:00 2001 From: Anton Kudryavtsev Date: Tue, 29 Mar 2016 14:25:57 +0300 Subject: Dial: deduplicate binding. Don't evaluate condition twice. Just use result of width. Change-Id: I38152353e7a2a5f60430684d38eb61140075d56f Reviewed-by: Mitch Curtis --- src/imports/controls/Dial.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imports/controls/Dial.qml') diff --git a/src/imports/controls/Dial.qml b/src/imports/controls/Dial.qml index b6752d55..a0f77ba9 100644 --- a/src/imports/controls/Dial.qml +++ b/src/imports/controls/Dial.qml @@ -48,7 +48,7 @@ T.Dial { x: control.width / 2 - width / 2 y: control.height / 2 - height / 2 width: Math.max(64, Math.min(control.width, control.height)) - height: Math.max(64, Math.min(control.width, control.height)) + height: width radius: width / 2 border.color: "#353637" } -- cgit v1.2.3