diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-09-12 15:13:57 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2016-09-12 14:17:10 +0000 |
commit | e61eceda62c661b50ed9210e95c0710f652ce9ec (patch) | |
tree | 1b90d30dba0243093b9ecafac42b1c499069f76c /src/controls/Styles | |
parent | ffcdd1d6742986e46920919800a382ecf7b58011 (diff) | |
download | qtquickcontrols-e61eceda62c661b50ed9210e95c0710f652ce9ec.tar.gz |
CheckBox: fix missing indicator frame on certain DPIs
Specifying width and height is typically a bad idea, as they can be
overridden by the layouting engine. implicitWidth and implicitHeight
are better.
Change-Id: Ib597f1fa98f82f00236c79bb5f9f07405593c35e
Task-number: QTBUG-51842
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/controls/Styles')
-rw-r--r-- | src/controls/Styles/Base/CheckBoxStyle.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Styles/Base/CheckBoxStyle.qml b/src/controls/Styles/Base/CheckBoxStyle.qml index a4028fef..68b1aa76 100644 --- a/src/controls/Styles/Base/CheckBoxStyle.qml +++ b/src/controls/Styles/Base/CheckBoxStyle.qml @@ -111,7 +111,7 @@ Style { /*! This defines the indicator button. */ property Component indicator: Item { implicitWidth: Math.round(TextSingleton.implicitHeight) - height: width + implicitHeight: implicitWidth Rectangle { anchors.fill: parent anchors.bottomMargin: -1 |