diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-20 15:40:38 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-02-21 06:29:46 +0000 |
commit | 9899e76aacc9938f98d0c0c104b75139df1688a9 (patch) | |
tree | 5435410ad08a5273a84c29bd03dc9a179790e51e /src/imports/controls/material/ItemDelegate.qml | |
parent | 49ae72a40d11c76ee3b439c7c3033756a6d23fac (diff) |
Material: use 8 px vertical padding for ItemDelegate
All of the other delegates also use 8 px vertical padding. This
prevents ItemDelegate from being eager to grow to 49 pixels on certain
platforms with slightly larger text heights, like macOS on a MacBook
Pro.
Change-Id: Id1d6e10af5f0e9c7e9e772bf1d667e32f97c17d7
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/material/ItemDelegate.qml')
-rw-r--r-- | src/imports/controls/material/ItemDelegate.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/controls/material/ItemDelegate.qml b/src/imports/controls/material/ItemDelegate.qml index 0793dddd..a6a771f4 100644 --- a/src/imports/controls/material/ItemDelegate.qml +++ b/src/imports/controls/material/ItemDelegate.qml @@ -51,7 +51,9 @@ T.ItemDelegate { indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) baselineOffset: contentItem.y + contentItem.baselineOffset - padding: control.Material.itemDelegateVerticalPadding + padding: 16 + topPadding: 8 + bottomPadding: 8 spacing: 16 icon.width: 24 |