summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-10-21 15:27:17 +0200
committerMitch Curtis <mitch.curtis@qt.io>2021-11-03 20:41:30 +0200
commit762a3d73f569b92d4ea8951d99e1c6a253e91131 (patch)
tree17068ec9aeb98a62cd244e2b5c0a4adefab1007a /src/gui
parent3aa1a7fad1913acaa69601e1e28bf7702639a778 (diff)
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 <fabian.kosmale@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qplatformtheme.h3
1 files changed, 3 insertions, 0 deletions
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,