From 6f976a4c7d36c5ff631ff4a8afa145c365fb4439 Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Thu, 11 Aug 2022 11:34:25 +0200 Subject: [PATCH] qlocale: Fix some flags not being exposed to the metatype system This caused it to be unavailable in metatypes and thus to not work in qml. Change-Id: I22b6fa3b43fe609bdc1167dc081290eb93845491 Reviewed-by: Fabian Kosmale Reviewed-by: Qt CI Bot --- src/corelib/text/qlocale.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/text/qlocale.h b/src/corelib/text/qlocale.h index 3bd545467f..c85701dc72 100644 --- a/src/corelib/text/qlocale.h +++ b/src/corelib/text/qlocale.h @@ -867,6 +867,7 @@ public: RejectTrailingZeroesAfterDot = 0x20 }; Q_DECLARE_FLAGS(NumberOptions, NumberOption) + Q_FLAG(NumberOption) enum FloatingPointPrecisionOption { FloatingPointShortest = -128 @@ -1063,6 +1064,7 @@ public: AnyLanguageCode = -1 }; Q_DECLARE_FLAGS(LanguageCodeTypes, LanguageCodeType) + Q_FLAG(LanguageCodeType) #if QT_CORE_REMOVED_SINCE(6, 3) static QString languageToCode(Language language);