diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2020-06-11 18:51:21 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-06-12 13:05:41 +0000 |
commit | 1084d644d4c2fd21aedb21b3f8ee46a8c352af0f (patch) | |
tree | b794660d5e9c3146fd88ef754b315db94e8309a5 | |
parent | 6715627602c049f83ae223ad89a4a0f837ca3c00 (diff) |
Fix vertical aligment of CheckBox elements
Change-Id: I3cf376c680557c3d43753f6f4c627344192eb30c
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r-- | src/imports/nativestyle/controls/DefaultCheckBox.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/nativestyle/controls/DefaultCheckBox.qml b/src/imports/nativestyle/controls/DefaultCheckBox.qml index b5de15d4..c75e755e 100644 --- a/src/imports/nativestyle/controls/DefaultCheckBox.qml +++ b/src/imports/nativestyle/controls/DefaultCheckBox.qml @@ -58,6 +58,7 @@ T.CheckBox { indicator: NativeStyle.CheckBox { control: control + y: control.topPadding + (control.availableHeight - height) >> 1 contentWidth: contentItem.implicitWidth contentHeight: contentItem.implicitHeight useNinePatchImage: false @@ -81,6 +82,7 @@ T.CheckBox { indicator && !mirrored ? indicator.width + spacing : 0 } + topPadding: nativeIndicator ? indicator.contentPadding.top : 0 rightPadding: { if (nativeIndicator) indicator.contentPadding.right |