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>.
Loading...
Searching...
No Matches
QQmlLocaleValueType Class Reference

#include <qqmllocale_p.h>

+ Collaboration diagram for QQmlLocaleValueType:

Public Member Functions

Q_INVOKABLE QQmlLocaleValueType (const QString &name)
 
Q_INVOKABLE QString currencySymbol (QLocale::CurrencySymbolFormat format=QLocale::CurrencySymbol) const
 
Q_INVOKABLE QString dateTimeFormat (QLocale::FormatType format=QLocale::LongFormat) const
 
Q_INVOKABLE QString timeFormat (QLocale::FormatType format=QLocale::LongFormat) const
 
Q_INVOKABLE QString dateFormat (QLocale::FormatType format=QLocale::LongFormat) const
 
Q_INVOKABLE QString monthName (int index, QLocale::FormatType format=QLocale::LongFormat) const
 
Q_INVOKABLE QString standaloneMonthName (int index, QLocale::FormatType format=QLocale::LongFormat) const
 
Q_INVOKABLE QString dayName (int index, QLocale::FormatType format=QLocale::LongFormat) const
 
Q_INVOKABLE QString standaloneDayName (int index, QLocale::FormatType format=QLocale::LongFormat) const
 
Q_INVOKABLE void formattedDataSize (QQmlV4FunctionPtr args) const
 
Q_INVOKABLE QString formattedDataSize (double bytes, int precision=2, QLocale::DataSizeFormats format=QLocale::DataSizeIecFormat) const
 
Q_INVOKABLE void toString (QQmlV4FunctionPtr args) const
 
Q_INVOKABLE QString toString () const
 
Q_INVOKABLE QString toString (int i) const
 
Q_INVOKABLE QString toString (double f) const
 
Q_INVOKABLE QString toString (double f, const QString &format, int precision=6) const
 
Q_INVOKABLE QString toString (const QDateTime &dateTime, const QString &format) const
 
Q_INVOKABLE QString toString (const QDateTime &dateTime, QLocale::FormatType format=QLocale::LongFormat) const
 
QQmlLocale::DayOfWeek firstDayOfWeek () const
 
QLocale::MeasurementSystem measurementSystem () const
 
Qt::LayoutDirection textDirection () const
 
QList< QQmlLocale::DayOfWeekweekDays () const
 
QStringList uiLanguages () const
 
QString name () const
 
QString nativeLanguageName () const
 
QString nativeTerritoryName () const
 
QString decimalPoint () const
 
QString groupSeparator () const
 
QString percent () const
 
QString zeroDigit () const
 
QString negativeSign () const
 
QString positiveSign () const
 
QString exponential () const
 
QString amText () const
 
QString pmText () const
 
QLocale::NumberOptions numberOptions () const
 
void setNumberOptions (const QLocale::NumberOptions &numberOptions)
 

Properties

QQmlLocale::DayOfWeek firstDayOfWeek
 
QLocale::MeasurementSystem measurementSystem
 
Qt::LayoutDirection textDirection
 
QList< QQmlLocale::DayOfWeekweekDays
 
QStringList uiLanguages
 
QString name
 
QString nativeLanguageName
 
QString nativeTerritoryName
 
QString decimalPoint
 
QString groupSeparator
 
QString percent
 
QString zeroDigit
 
QString negativeSign
 
QString positiveSign
 
QString exponential
 
QString amText
 
QString pmText
 
QLocale::NumberOptions numberOptions
 

Detailed Description

Definition at line 93 of file qqmllocale_p.h.

Constructor & Destructor Documentation

◆ QQmlLocaleValueType()

Q_INVOKABLE QQmlLocaleValueType::QQmlLocaleValueType ( const QString & name)
inline

Definition at line 128 of file qqmllocale_p.h.

Member Function Documentation

◆ amText()

QString QQmlLocaleValueType::amText ( ) const
inline

Definition at line 237 of file qqmllocale_p.h.

References QLocale::amText().

+ Here is the call graph for this function:

◆ currencySymbol()

Q_INVOKABLE QString QQmlLocaleValueType::currencySymbol ( QLocale::CurrencySymbolFormat format = QLocale::CurrencySymbol) const
inline

Definition at line 130 of file qqmllocale_p.h.

References QLocale::currencySymbol().

+ Here is the call graph for this function:

◆ dateFormat()

Q_INVOKABLE QString QQmlLocaleValueType::dateFormat ( QLocale::FormatType format = QLocale::LongFormat) const
inline

Definition at line 146 of file qqmllocale_p.h.

References QLocale::dateFormat().

+ Here is the call graph for this function:

◆ dateTimeFormat()

Q_INVOKABLE QString QQmlLocaleValueType::dateTimeFormat ( QLocale::FormatType format = QLocale::LongFormat) const
inline

Definition at line 136 of file qqmllocale_p.h.

References QLocale::dateTimeFormat().

+ Here is the call graph for this function:

◆ dayName()

Q_INVOKABLE QString QQmlLocaleValueType::dayName ( int index,
QLocale::FormatType format = QLocale::LongFormat ) const
inline

Definition at line 164 of file qqmllocale_p.h.

References QLocale::dayName().

+ Here is the call graph for this function:

◆ decimalPoint()

QString QQmlLocaleValueType::decimalPoint ( ) const
inline

Definition at line 230 of file qqmllocale_p.h.

References QLocale::decimalPoint().

+ Here is the call graph for this function:

◆ exponential()

QString QQmlLocaleValueType::exponential ( ) const
inline

Definition at line 236 of file qqmllocale_p.h.

References QLocale::exponential().

+ Here is the call graph for this function:

◆ firstDayOfWeek()

QQmlLocale::DayOfWeek QQmlLocaleValueType::firstDayOfWeek ( ) const

Definition at line 508 of file qqmllocale.cpp.

References QLocale::firstDayOfWeek(), and qtDayToQmlDay().

+ Here is the call graph for this function:

◆ formattedDataSize() [1/2]

Q_INVOKABLE QString QQmlLocaleValueType::formattedDataSize ( double bytes,
int precision = 2,
QLocale::DataSizeFormats format = QLocale::DataSizeIecFormat ) const
inline

Definition at line 178 of file qqmllocale_p.h.

References QLocale::formattedDataSize(), and QV4::Value::toInteger().

+ Here is the call graph for this function:

◆ formattedDataSize() [2/2]

void QQmlLocaleValueType::formattedDataSize ( QQmlV4FunctionPtr args) const

Definition at line 437 of file qqmllocale.cpp.

References arg, args, QV4::Heap::Base::asReturnedValue(), QV4::Scope::engine, QLocale::formattedDataSize(), QString::fromLatin1(), isNumber(), QList< T >::length(), QV4::ExecutionEngine::newString(), Q_ASSERT, qWarning, and QV4::ExecutionEngine::throwError().

+ Here is the call graph for this function:

◆ groupSeparator()

QString QQmlLocaleValueType::groupSeparator ( ) const
inline

Definition at line 231 of file qqmllocale_p.h.

References QLocale::groupSeparator().

+ Here is the call graph for this function:

◆ measurementSystem()

QLocale::MeasurementSystem QQmlLocaleValueType::measurementSystem ( ) const
inline

Definition at line 216 of file qqmllocale_p.h.

References QLocale::measurementSystem().

+ Here is the call graph for this function:

◆ monthName()

Q_INVOKABLE QString QQmlLocaleValueType::monthName ( int index,
QLocale::FormatType format = QLocale::LongFormat ) const
inline

Definition at line 151 of file qqmllocale_p.h.

References QLocale::monthName().

+ Here is the call graph for this function:

◆ name()

QString QQmlLocaleValueType::name ( ) const
inline

Definition at line 221 of file qqmllocale_p.h.

References QLocale::name().

+ Here is the call graph for this function:

◆ nativeLanguageName()

QString QQmlLocaleValueType::nativeLanguageName ( ) const
inline

Definition at line 222 of file qqmllocale_p.h.

References QLocale::nativeLanguageName().

+ Here is the call graph for this function:

◆ nativeTerritoryName()

QString QQmlLocaleValueType::nativeTerritoryName ( ) const
inline

Definition at line 229 of file qqmllocale_p.h.

References QLocale::nativeTerritoryName().

+ Here is the call graph for this function:

◆ negativeSign()

QString QQmlLocaleValueType::negativeSign ( ) const
inline

Definition at line 234 of file qqmllocale_p.h.

References QLocale::negativeSign().

+ Here is the call graph for this function:

◆ numberOptions()

QLocale::NumberOptions QQmlLocaleValueType::numberOptions ( ) const
inline

Definition at line 240 of file qqmllocale_p.h.

References QLocale::numberOptions().

+ Here is the call graph for this function:

◆ percent()

QString QQmlLocaleValueType::percent ( ) const
inline

Definition at line 232 of file qqmllocale_p.h.

References QLocale::percent().

+ Here is the call graph for this function:

◆ pmText()

QString QQmlLocaleValueType::pmText ( ) const
inline

Definition at line 238 of file qqmllocale_p.h.

References QLocale::pmText().

+ Here is the call graph for this function:

◆ positiveSign()

QString QQmlLocaleValueType::positiveSign ( ) const
inline

Definition at line 235 of file qqmllocale_p.h.

References QLocale::positiveSign().

+ Here is the call graph for this function:

◆ setNumberOptions()

void QQmlLocaleValueType::setNumberOptions ( const QLocale::NumberOptions & numberOptions)
inline

Definition at line 241 of file qqmllocale_p.h.

References numberOptions, and QLocale::setNumberOptions().

+ Here is the call graph for this function:

◆ standaloneDayName()

Q_INVOKABLE QString QQmlLocaleValueType::standaloneDayName ( int index,
QLocale::FormatType format = QLocale::LongFormat ) const
inline

Definition at line 170 of file qqmllocale_p.h.

References QLocale::standaloneDayName().

+ Here is the call graph for this function:

◆ standaloneMonthName()

Q_INVOKABLE QString QQmlLocaleValueType::standaloneMonthName ( int index,
QLocale::FormatType format = QLocale::LongFormat ) const
inline

Definition at line 157 of file qqmllocale_p.h.

References QLocale::standaloneMonthName().

+ Here is the call graph for this function:

◆ textDirection()

Qt::LayoutDirection QQmlLocaleValueType::textDirection ( ) const
inline

Definition at line 217 of file qqmllocale_p.h.

References QLocale::textDirection().

+ Here is the call graph for this function:

◆ timeFormat()

Q_INVOKABLE QString QQmlLocaleValueType::timeFormat ( QLocale::FormatType format = QLocale::LongFormat) const
inline

Definition at line 141 of file qqmllocale_p.h.

References QLocale::timeFormat().

+ Here is the call graph for this function:

◆ toString() [1/7]

Q_INVOKABLE QString QQmlLocaleValueType::toString ( ) const
inline

Definition at line 191 of file qqmllocale_p.h.

Referenced by toString().

+ Here is the caller graph for this function:

◆ toString() [2/7]

Q_INVOKABLE QString QQmlLocaleValueType::toString ( const QDateTime & dateTime,
const QString & format ) const
inline

Definition at line 205 of file qqmllocale_p.h.

References dateTime, and QLocale::toString().

+ Here is the call graph for this function:

◆ toString() [3/7]

Q_INVOKABLE QString QQmlLocaleValueType::toString ( const QDateTime & dateTime,
QLocale::FormatType format = QLocale::LongFormat ) const
inline

Definition at line 209 of file qqmllocale_p.h.

References dateTime, and QLocale::toString().

+ Here is the call graph for this function:

◆ toString() [4/7]

Q_INVOKABLE QString QQmlLocaleValueType::toString ( double f) const
inline

Definition at line 194 of file qqmllocale_p.h.

References QJSNumberCoercion::isInteger(), toString(), and QLocale::toString().

+ Here is the call graph for this function:

◆ toString() [5/7]

Q_INVOKABLE QString QQmlLocaleValueType::toString ( double f,
const QString & format,
int precision = 6 ) const
inline

Definition at line 198 of file qqmllocale_p.h.

References QString::length(), and QLocale::toString().

+ Here is the call graph for this function:

◆ toString() [6/7]

Q_INVOKABLE QString QQmlLocaleValueType::toString ( int i) const
inline

Definition at line 193 of file qqmllocale_p.h.

References i, and QLocale::toString().

+ Here is the call graph for this function:

◆ toString() [7/7]

void QQmlLocaleValueType::toString ( QQmlV4FunctionPtr args) const

Definition at line 523 of file qqmllocale.cpp.

References arg, args, QV4::Scope::engine, QString::fromLatin1(), QList< T >::length(), Q_ASSERT, and QV4::ExecutionEngine::throwError().

+ Here is the call graph for this function:

◆ uiLanguages()

QStringList QQmlLocaleValueType::uiLanguages ( ) const
inline

Definition at line 219 of file qqmllocale_p.h.

References QLocale::uiLanguages().

+ Here is the call graph for this function:

◆ weekDays()

QList< QQmlLocale::DayOfWeek > QQmlLocaleValueType::weekDays ( ) const

Definition at line 513 of file qqmllocale.cpp.

References qtDayToQmlDay(), and QLocale::weekdays().

+ Here is the call graph for this function:

◆ zeroDigit()

QString QQmlLocaleValueType::zeroDigit ( ) const
inline

Definition at line 233 of file qqmllocale_p.h.

References QLocale::zeroDigit().

+ Here is the call graph for this function:

Property Documentation

◆ amText

QString QQmlLocaleValueType::amText
read

Definition at line 116 of file qqmllocale_p.h.

◆ decimalPoint

QString QQmlLocaleValueType::decimalPoint
read

Definition at line 109 of file qqmllocale_p.h.

◆ exponential

QString QQmlLocaleValueType::exponential
read

Definition at line 115 of file qqmllocale_p.h.

◆ firstDayOfWeek

QQmlLocale::DayOfWeek QQmlLocaleValueType::firstDayOfWeek
read

Definition at line 97 of file qqmllocale_p.h.

◆ groupSeparator

QString QQmlLocaleValueType::groupSeparator
read

Definition at line 110 of file qqmllocale_p.h.

◆ measurementSystem

QLocale::MeasurementSystem QQmlLocaleValueType::measurementSystem
read

Definition at line 98 of file qqmllocale_p.h.

◆ name

QString QQmlLocaleValueType::name
read

Definition at line 103 of file qqmllocale_p.h.

◆ nativeLanguageName

QString QQmlLocaleValueType::nativeLanguageName
read

Definition at line 104 of file qqmllocale_p.h.

◆ nativeTerritoryName

QString QQmlLocaleValueType::nativeTerritoryName
read

Definition at line 108 of file qqmllocale_p.h.

◆ negativeSign

QString QQmlLocaleValueType::negativeSign
read

Definition at line 113 of file qqmllocale_p.h.

◆ numberOptions

QLocale::NumberOptions QQmlLocaleValueType::numberOptions
readwrite

Definition at line 119 of file qqmllocale_p.h.

Referenced by setNumberOptions().

◆ percent

QString QQmlLocaleValueType::percent
read

Definition at line 111 of file qqmllocale_p.h.

◆ pmText

QString QQmlLocaleValueType::pmText
read

Definition at line 117 of file qqmllocale_p.h.

◆ positiveSign

QString QQmlLocaleValueType::positiveSign
read

Definition at line 114 of file qqmllocale_p.h.

◆ textDirection

Qt::LayoutDirection QQmlLocaleValueType::textDirection
read

Definition at line 99 of file qqmllocale_p.h.

◆ uiLanguages

QStringList QQmlLocaleValueType::uiLanguages
read

Definition at line 101 of file qqmllocale_p.h.

◆ weekDays

QList<QQmlLocale::DayOfWeek> QQmlLocaleValueType::weekDays
read

Definition at line 100 of file qqmllocale_p.h.

◆ zeroDigit

QString QQmlLocaleValueType::zeroDigit
read

Definition at line 112 of file qqmllocale_p.h.


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