From eba62334a9b646f61e73b5b734ec5971e56d672a Mon Sep 17 00:00:00 2001 From: Nikita Krupenko Date: Thu, 9 Mar 2017 20:01:27 +0200 Subject: Material: use proper layout of the buttons in the DialogButtonBox Instead of using system button layout, use layout from macOS, which better fits the Material Design guidelines and also used in the Android QPA plugin. Task-number: QTBUG-58060 Change-Id: I06381219b5f1ad0a32742487fd314a8017d82dfc Reviewed-by: J-P Nurmi --- src/imports/controls/material/qquickmaterialtheme_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/imports/controls/material/qquickmaterialtheme_p.h') diff --git a/src/imports/controls/material/qquickmaterialtheme_p.h b/src/imports/controls/material/qquickmaterialtheme_p.h index 828ca83a..d505d4ff 100644 --- a/src/imports/controls/material/qquickmaterialtheme_p.h +++ b/src/imports/controls/material/qquickmaterialtheme_p.h @@ -48,6 +48,7 @@ // We mean it. // +#include #include #include @@ -60,6 +61,8 @@ public: const QFont *font(Font type = SystemFont) const override; + QVariant themeHint(ThemeHint hint) const override; + private: QFont systemFont; QFont buttonFont; -- cgit v1.2.3