From 762a3d73f569b92d4ea8951d99e1c6a253e91131 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 21 Oct 2021 15:27:17 +0200 Subject: Make QPlatformTheme a gadget So that we can wrap it and expose that wrapper to QML. Also, make the ThemeHints enum available with Q_ENUM. Change-Id: I920e7cc29c45c81c3a381b14ddb077f259f66b6c Reviewed-by: Fabian Kosmale Reviewed-by: Volker Hilsheimer --- src/gui/kernel/qplatformtheme.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/kernel/qplatformtheme.h') diff --git a/src/gui/kernel/qplatformtheme.h b/src/gui/kernel/qplatformtheme.h index 2fdd45b910..fdd1141896 100644 --- a/src/gui/kernel/qplatformtheme.h +++ b/src/gui/kernel/qplatformtheme.h @@ -76,7 +76,9 @@ class QFileInfo; class Q_GUI_EXPORT QPlatformTheme { + Q_GADGET Q_DECLARE_PRIVATE(QPlatformTheme) + public: Q_DISABLE_COPY_MOVE(QPlatformTheme) @@ -121,6 +123,7 @@ public: InteractiveResizeAcrossScreens, ShowDirectoriesFirst, }; + Q_ENUM(ThemeHint) enum DialogType { FileDialog, -- cgit v1.2.3