diff options
author | Olivier De Cannière <olivier.decanniere@qt.io> | 2023-08-28 12:55:24 +0200 |
---|---|---|
committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2023-08-30 09:04:23 +0200 |
commit | f9dccd05d3ff4bb403b8ad66f641695c9a00ee1d (patch) | |
tree | 304e14435f1f9cb257044893a047dcb50a4cf3d9 /src/corelib/text/qlocale.h | |
parent | a323f05c5e3b4b2268b3a00eac79af1bdfaa03bb (diff) |
QLocale: Add Q_ENUM registration for some enums
Fixes: QTBUG-116527
Pick-to: 6.5 6.6
Change-Id: If04bd5f504b3a8a39a35b9ba7024cdc9eb2d154a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/text/qlocale.h')
-rw-r--r-- | src/corelib/text/qlocale.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/text/qlocale.h b/src/corelib/text/qlocale.h index 18e5a71cf7..8137bb31f5 100644 --- a/src/corelib/text/qlocale.h +++ b/src/corelib/text/qlocale.h @@ -886,12 +886,14 @@ public: }; enum class TagSeparator : char { Dash = '-', Underscore = '_' }; + Q_ENUM(TagSeparator) enum CurrencySymbolFormat { CurrencyIsoCode, CurrencySymbol, CurrencyDisplayName }; + Q_ENUM(CurrencySymbolFormat) enum DataSizeFormat { // Single-bit values, for internal use. @@ -1129,6 +1131,7 @@ public: NumberOptions numberOptions() const; enum QuotationStyle { StandardQuotation, AlternateQuotation }; + Q_ENUM(QuotationStyle) QString quoteString(const QString &str, QuotationStyle style = StandardQuotation) const { return quoteString(QStringView(str), style); } QString quoteString(QStringView str, QuotationStyle style = StandardQuotation) const; |