From 68e2645da2ab4a40a0e49cc7de2fcd7c6d1f9dee 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 Change-Id: I233e456ced585b9274a1724cc550bc2959757104 Reviewed-by: Axel Spoerl Reviewed-by: Volker Hilsheimer (cherry picked from commit bcae883274a11a6a80a901a6e2776332992ed08e) Reviewed-by: Qt Cherry-pick Bot --- 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 7f05129a2c8..a6162e10903 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,