diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2022-08-11 11:34:25 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2022-08-11 20:36:40 +0200 |
commit | 6f976a4c7d36c5ff631ff4a8afa145c365fb4439 (patch) | |
tree | 98ccff9c5c767ce06e95022868b59e77e7afe9f5 /src/corelib | |
parent | d68da61564b9b17f99b7960b54d328247a0d35b8 (diff) |
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 <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/text/qlocale.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |