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>
This commit is contained in:
parent
a323f05c5e
commit
f9dccd05d3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user