QtBase  v6.3.1
Classes | Public Types | Public Member Functions | Friends | List of all members
QSystemLocale Class Reference

#include <qlocale_p.h>

Inheritance diagram for QSystemLocale:
Inheritance graph
[legend]

Classes

struct  CurrencyToStringArgument
 

Public Types

enum  QueryType {
  LanguageId , TerritoryId , DecimalPoint , GroupSeparator ,
  ZeroDigit , NegativeSign , DateFormatLong , DateFormatShort ,
  TimeFormatLong , TimeFormatShort , DayNameLong , DayNameShort ,
  DayNameNarrow , MonthNameLong , MonthNameShort , MonthNameNarrow ,
  DateToStringLong , DateToStringShort , TimeToStringLong , TimeToStringShort ,
  DateTimeFormatLong , DateTimeFormatShort , DateTimeToStringLong , DateTimeToStringShort ,
  MeasurementSystem , PositiveSign , AMText , PMText ,
  FirstDayOfWeek , Weekdays , CurrencySymbol , CurrencyToString ,
  Collation , UILanguages , StringToStandardQuotation , StringToAlternateQuotation ,
  ScriptId , ListToSeparatedString , LocaleChanged , NativeLanguageName ,
  NativeTerritoryName , StandaloneMonthNameLong , StandaloneMonthNameShort , StandaloneMonthNameNarrow ,
  StandaloneDayNameLong , StandaloneDayNameShort , StandaloneDayNameNarrow
}
 

Public Member Functions

 QSystemLocale ()
 
virtual ~QSystemLocale ()
 
virtual QVariant query (QueryType type, QVariant in=QVariant()) const
 
virtual QLocale fallbackLocale () const
 
uint fallbackLocaleIndex () const
 

Friends

class QSystemLocaleSingleton
 

Detailed Description

Definition at line 72 of file qlocale_p.h.

Member Enumeration Documentation

◆ QueryType

Enumerator
LanguageId 
TerritoryId 
DecimalPoint 
GroupSeparator 
ZeroDigit 
NegativeSign 
DateFormatLong 
DateFormatShort 
TimeFormatLong 
TimeFormatShort 
DayNameLong 
DayNameShort 
DayNameNarrow 
MonthNameLong 
MonthNameShort 
MonthNameNarrow 
DateToStringLong 
DateToStringShort 
TimeToStringLong 
TimeToStringShort 
DateTimeFormatLong 
DateTimeFormatShort 
DateTimeToStringLong 
DateTimeToStringShort 
MeasurementSystem 
PositiveSign 
AMText 
PMText 
FirstDayOfWeek 
Weekdays 
CurrencySymbol 
CurrencyToString 
Collation 
UILanguages 
StringToStandardQuotation 
StringToAlternateQuotation 
ScriptId 
ListToSeparatedString 
LocaleChanged 
NativeLanguageName 
NativeTerritoryName 
StandaloneMonthNameLong 
StandaloneMonthNameShort 
StandaloneMonthNameNarrow 
StandaloneDayNameLong 
StandaloneDayNameShort 
StandaloneDayNameNarrow 

Definition at line 87 of file qlocale_p.h.

Constructor & Destructor Documentation

◆ QSystemLocale()

QSystemLocale::QSystemLocale ( )

Constructs a QSystemLocale object.

The constructor will automatically install this object as the system locale, if there's not one active. It also resets the flag that'll prompt QLocale::system() to re-initialize its data, so that instantiating a QSystemLocale transiently (doesn't install the transient as system locale if there was one already and) triggers an update to the system locale's data.

Definition at line 718 of file qlocale.cpp.

◆ ~QSystemLocale()

QSystemLocale::~QSystemLocale ( )
virtual

Deletes the object.

Definition at line 735 of file qlocale.cpp.

Member Function Documentation

◆ fallbackLocale()

QLocale QSystemLocale::fallbackLocale ( ) const
virtual

Reimplemented in MySystemLocale, and QAndroidSystemLocale.

Definition at line 531 of file qlocale_mac.mm.

Here is the caller graph for this function:

◆ fallbackLocaleIndex()

uint QSystemLocale::fallbackLocaleIndex ( ) const
inline

Definition at line 455 of file qlocale_p.h.

Here is the call graph for this function:

◆ query()

QVariant QSystemLocale::query ( QueryType  type,
QVariant  in = QVariant() 
) const
virtual

Reimplemented in MySystemLocale, and QAndroidSystemLocale.

Definition at line 556 of file qlocale_mac.mm.

Friends And Related Function Documentation

◆ QSystemLocaleSingleton

friend class QSystemLocaleSingleton
friend

Definition at line 142 of file qlocale_p.h.


The documentation for this class was generated from the following files: