aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/qquickmaterialstyle_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-04-25 14:09:11 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-25 14:08:03 +0000
commitbafe2ca913f6268829088326b86ec90b41277c36 (patch)
tree2a6ad5aa706174315614e3f6df26d7f9511078c7 /src/imports/controls/material/qquickmaterialstyle_p.h
parenta55ec55a13e4105fd3facdada1c2899190c52828 (diff)
Material: use background insets
Allows easily configuring the insets from the outside. Buttons have normally 6px insets, but for example a large Floating Action Button doesn't. Task-number: QTBUG-60156 Change-Id: I49121c5bd588ff83e7ab9032de42a93872e999e4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/qquickmaterialstyle_p.h')
-rw-r--r--src/imports/controls/material/qquickmaterialstyle_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/material/qquickmaterialstyle_p.h b/src/imports/controls/material/qquickmaterialstyle_p.h
index 31b63ca1..0f209a6f 100644
--- a/src/imports/controls/material/qquickmaterialstyle_p.h
+++ b/src/imports/controls/material/qquickmaterialstyle_p.h
@@ -99,6 +99,7 @@ class QQuickMaterialStyle : public QQuickAttachedObject
Q_PROPERTY(QColor spinBoxDisabledIconColor READ spinBoxDisabledIconColor NOTIFY paletteChanged FINAL)
Q_PROPERTY(int touchTarget READ touchTarget CONSTANT FINAL)
+ Q_PROPERTY(int buttonHeight READ buttonHeight CONSTANT FINAL)
Q_PROPERTY(int delegateHeight READ delegateHeight CONSTANT FINAL)
Q_PROPERTY(int dialogButtonBoxHeight READ dialogButtonBoxHeight CONSTANT FINAL)
Q_PROPERTY(int frameVerticalPadding READ frameVerticalPadding CONSTANT FINAL)
@@ -241,6 +242,7 @@ public:
Q_INVOKABLE QColor shade(const QColor &color, Shade shade) const;
int touchTarget() const;
+ int buttonHeight() const;
int delegateHeight() const;
int dialogButtonBoxHeight() const;
int frameVerticalPadding() const;