From bcae883274a11a6a80a901a6e2776332992ed08e Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 1 Sep 2023 14:56:19 +0800 Subject: [PATCH] Note that QPalette::ColorRole must be kept in sync with QQuickColorGroup Without adding the corresponding properties, they will not be available in QML. Task-number: QTBUG-116106 Pick-to: 6.6 Change-Id: I233e456ced585b9274a1724cc550bc2959757104 Reviewed-by: Axel Spoerl Reviewed-by: Volker Hilsheimer --- src/gui/kernel/qpalette.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/kernel/qpalette.h b/src/gui/kernel/qpalette.h index 7f05129a2c..a6162e1090 100644 --- a/src/gui/kernel/qpalette.h +++ b/src/gui/kernel/qpalette.h @@ -45,6 +45,7 @@ public: operator QVariant() const; // Do not change the order, the serialization format depends on it + // Ensure these values are kept in sync with QQuickColorGroup's properties. enum ColorGroup { Active, Disabled, Inactive, NColorGroups, Current, All, Normal = Active }; Q_ENUM(ColorGroup) enum ColorRole { WindowText, Button, Light, Midlight, Dark, Mid,