From 449ebc4fbc26db7b8ef4091f780163e3045b97c7 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 1 Mar 2018 17:43:45 +0100 Subject: QQuickControl: update baseline offset automatically ...unless explicitly defined. All buttons repeated the same binding. [ChangeLog][Controls][Control] Unless explicitly specified, baselineOffset is now automatically updated based on the top padding of the control and the baselineOffset of the contentItem. Styles no longer need to specify the baselineOffset in QML. Change-Id: I9c6f61371fee05a06b5dd31b27d8baf9da0bdeeb Reviewed-by: Mitch Curtis --- src/imports/controls/RadioButton.qml | 1 - 1 file changed, 1 deletion(-) (limited to 'src/imports/controls/RadioButton.qml') diff --git a/src/imports/controls/RadioButton.qml b/src/imports/controls/RadioButton.qml index 751f505a..d45336b3 100644 --- a/src/imports/controls/RadioButton.qml +++ b/src/imports/controls/RadioButton.qml @@ -47,7 +47,6 @@ T.RadioButton { implicitHeight: Math.max(background ? background.implicitHeight : 0, Math.max(contentItem.implicitHeight, indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) - baselineOffset: contentItem.y + contentItem.baselineOffset padding: 6 spacing: 6 -- cgit v1.2.3