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/qquickmaterialstyle_p.h | |
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/qquickmaterialstyle_p.h')
-rw-r--r-- | src/imports/controls/material/qquickmaterialstyle_p.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/imports/controls/material/qquickmaterialstyle_p.h b/src/imports/controls/material/qquickmaterialstyle_p.h index 37baa450..0cb168a9 100644 --- a/src/imports/controls/material/qquickmaterialstyle_p.h +++ b/src/imports/controls/material/qquickmaterialstyle_p.h @@ -102,7 +102,6 @@ class QQuickMaterialStyle : public QQuickAttachedObject Q_PROPERTY(int delegateHeight READ delegateHeight CONSTANT FINAL) Q_PROPERTY(int dialogButtonBoxHeight READ dialogButtonBoxHeight CONSTANT FINAL) Q_PROPERTY(int frameVerticalPadding READ frameVerticalPadding CONSTANT FINAL) - Q_PROPERTY(int itemDelegateVerticalPadding READ itemDelegateVerticalPadding CONSTANT FINAL) Q_PROPERTY(int menuItemHeight READ menuItemHeight CONSTANT FINAL) Q_PROPERTY(int menuItemVerticalPadding READ menuItemVerticalPadding CONSTANT FINAL) Q_PROPERTY(int switchDelegateVerticalPadding READ switchDelegateVerticalPadding CONSTANT FINAL) @@ -245,7 +244,6 @@ public: int delegateHeight() const; int dialogButtonBoxHeight() const; int frameVerticalPadding() const; - int itemDelegateVerticalPadding() const; int menuItemHeight() const; int menuItemVerticalPadding() const; int switchDelegateVerticalPadding() const; |