![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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 |
Protected Member Functions | |
const QSharedDataPointer< QLocalePrivate > | localeData (const QLocale &locale) const |
Definition at line 126 of file qlocale_p.h.
Definition at line 144 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 830 of file qlocale.cpp.
|
virtual |
Deletes the object.
Definition at line 841 of file qlocale.cpp.
|
virtual |
Reimplemented in QAndroidSystemLocale.
Definition at line 582 of file qlocale_mac.mm.
|
inline |
Definition at line 628 of file qlocale_p.h.
|
inlineprotected |
Definition at line 200 of file qlocale_p.h.
Reimplemented in QAndroidSystemLocale.
Definition at line 607 of file qlocale_mac.mm.