Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qlocale_p.h>
Classes | |
struct | CurrencyToStringArgument |
Public Member Functions | |
QSystemLocale () | |
virtual | ~QSystemLocale () |
virtual QVariant | query (QueryType type, QVariant &&in=QVariant()) const |
virtual QLocale | fallbackLocale () const |
qsizetype | fallbackLocaleIndex () const |
Definition at line 106 of file qlocale_p.h.
Definition at line 124 of file qlocale_p.h.
QSystemLocale::QSystemLocale | ( | ) |
Constructs a QSystemLocale object.
The constructor will automatically install this object as the system locale. It and the destructor maintain a stack of system locales, with the most-recently-created instance (that hasn't yet been deleted) used as the system locale. This is only intended as a way to let a platform plugin install its own system locale, overriding what might otherwise be provided for its class of platform (as Android does, differing from Linux), and to let tests transiently override the system or plugin-supplied one. As such, there should not be diverse threads creating and destroying QSystemLocale instances concurrently, so no attempt is made at thread-safety in managing the stack.
This constructor also resets the flag that'll prompt QLocale::system() to re-initialize its data, so that instantiating a QSystemLocale (even transiently) triggers a refresh of the system locale's data. This is exploited by some test code.
Definition at line 720 of file qlocale.cpp.
References _systemLocale, and systemLocaleData.
|
virtual |
Deletes the object.
Definition at line 731 of file qlocale.cpp.
References _systemLocale, and systemLocaleData.
|
virtual |
Reimplemented in QAndroidSystemLocale.
Definition at line 559 of file qlocale_mac.mm.
References getMacLocaleName().
Referenced by fallbackLocaleIndex().
|
inline |
Definition at line 538 of file qlocale_p.h.
References fallbackLocale().
Reimplemented in QAndroidSystemLocale.
Definition at line 584 of file qlocale_mac.mm.
References AMText, CurrencySymbol, CurrencyToString, DateFormatLong, DateFormatShort, DateToStringLong, DateToStringShort, DayNameLong, DayNameNarrow, DayNameShort, DecimalPoint, FirstDayOfWeek, getCFLocaleValue(), getMacDateFormat(), getMacTimeFormat(), GroupSeparator, i, LanguageId, macCurrencySymbol(), macDateToString(), macDayName(), macFirstDayOfWeek(), macFormatCurrency(), macMeasurementSystem(), macMonthName(), macQuoteString(), macTimeToString(), macZeroDigit(), MeasurementSystem, MonthNameLong, MonthNameNarrow, MonthNameShort, NegativeSign, PMText, pool, PositiveSign, ScriptId, StandaloneDayNameLong, StandaloneDayNameNarrow, StandaloneDayNameShort, StandaloneMonthNameLong, StandaloneMonthNameNarrow, StandaloneMonthNameShort, StringToAlternateQuotation, StringToStandardQuotation, TerritoryId, TimeFormatLong, TimeFormatShort, TimeToStringLong, TimeToStringShort, UILanguages, and ZeroDigit.