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 90 of file qqmllocale_p.h.

Constructor & Destructor Documentation

◆ QQmlLocaleValueType()

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

Definition at line 125 of file qqmllocale_p.h.

Member Function Documentation

◆ amText()

QString QQmlLocaleValueType::amText ( ) const
inline

Definition at line 234 of file qqmllocale_p.h.

◆ currencySymbol()

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

Definition at line 127 of file qqmllocale_p.h.

◆ dateFormat()

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

Definition at line 143 of file qqmllocale_p.h.

◆ dateTimeFormat()

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

Definition at line 133 of file qqmllocale_p.h.

◆ dayName()

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

Definition at line 161 of file qqmllocale_p.h.

◆ decimalPoint()

QString QQmlLocaleValueType::decimalPoint ( ) const
inline

Definition at line 227 of file qqmllocale_p.h.

◆ exponential()

QString QQmlLocaleValueType::exponential ( ) const
inline

Definition at line 233 of file qqmllocale_p.h.

◆ firstDayOfWeek()

QQmlLocale::DayOfWeek QQmlLocaleValueType::firstDayOfWeek ( ) const

Definition at line 508 of file qqmllocale.cpp.

References 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 175 of file qqmllocale_p.h.

References 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, 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 228 of file qqmllocale_p.h.

◆ measurementSystem()

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

Definition at line 213 of file qqmllocale_p.h.

◆ monthName()

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

Definition at line 148 of file qqmllocale_p.h.

◆ name()

QString QQmlLocaleValueType::name ( ) const
inline

Definition at line 218 of file qqmllocale_p.h.

◆ nativeLanguageName()

QString QQmlLocaleValueType::nativeLanguageName ( ) const
inline

Definition at line 219 of file qqmllocale_p.h.

◆ nativeTerritoryName()

QString QQmlLocaleValueType::nativeTerritoryName ( ) const
inline

Definition at line 226 of file qqmllocale_p.h.

◆ negativeSign()

QString QQmlLocaleValueType::negativeSign ( ) const
inline

Definition at line 231 of file qqmllocale_p.h.

◆ numberOptions()

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

Definition at line 237 of file qqmllocale_p.h.

◆ percent()

QString QQmlLocaleValueType::percent ( ) const
inline

Definition at line 229 of file qqmllocale_p.h.

◆ pmText()

QString QQmlLocaleValueType::pmText ( ) const
inline

Definition at line 235 of file qqmllocale_p.h.

◆ positiveSign()

QString QQmlLocaleValueType::positiveSign ( ) const
inline

Definition at line 232 of file qqmllocale_p.h.

◆ setNumberOptions()

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

Definition at line 238 of file qqmllocale_p.h.

References numberOptions.

◆ standaloneDayName()

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

Definition at line 167 of file qqmllocale_p.h.

◆ standaloneMonthName()

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

Definition at line 154 of file qqmllocale_p.h.

◆ textDirection()

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

Definition at line 214 of file qqmllocale_p.h.

◆ timeFormat()

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

Definition at line 138 of file qqmllocale_p.h.

◆ toString() [1/7]

Q_INVOKABLE QString QQmlLocaleValueType::toString ( ) const
inline

Definition at line 188 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 202 of file qqmllocale_p.h.

References dateTime.

◆ toString() [3/7]

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

Definition at line 206 of file qqmllocale_p.h.

References dateTime.

◆ toString() [4/7]

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

Definition at line 191 of file qqmllocale_p.h.

References QJSNumberCoercion::isInteger(), and 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 195 of file qqmllocale_p.h.

References QString::length().

+ Here is the call graph for this function:

◆ toString() [6/7]

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

Definition at line 190 of file qqmllocale_p.h.

References i.

◆ 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 216 of file qqmllocale_p.h.

◆ weekDays()

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

Definition at line 513 of file qqmllocale.cpp.

References qtDayToQmlDay().

+ Here is the call graph for this function:

◆ zeroDigit()

QString QQmlLocaleValueType::zeroDigit ( ) const
inline

Definition at line 230 of file qqmllocale_p.h.

Property Documentation

◆ amText

QString QQmlLocaleValueType::amText
read

Definition at line 113 of file qqmllocale_p.h.

◆ decimalPoint

QString QQmlLocaleValueType::decimalPoint
read

Definition at line 106 of file qqmllocale_p.h.

◆ exponential

QString QQmlLocaleValueType::exponential
read

Definition at line 112 of file qqmllocale_p.h.

◆ firstDayOfWeek

QQmlLocale::DayOfWeek QQmlLocaleValueType::firstDayOfWeek
read

Definition at line 94 of file qqmllocale_p.h.

◆ groupSeparator

QString QQmlLocaleValueType::groupSeparator
read

Definition at line 107 of file qqmllocale_p.h.

◆ measurementSystem

QLocale::MeasurementSystem QQmlLocaleValueType::measurementSystem
read

Definition at line 95 of file qqmllocale_p.h.

◆ name

QString QQmlLocaleValueType::name
read

Definition at line 100 of file qqmllocale_p.h.

◆ nativeLanguageName

QString QQmlLocaleValueType::nativeLanguageName
read

Definition at line 101 of file qqmllocale_p.h.

◆ nativeTerritoryName

QString QQmlLocaleValueType::nativeTerritoryName
read

Definition at line 105 of file qqmllocale_p.h.

◆ negativeSign

QString QQmlLocaleValueType::negativeSign
read

Definition at line 110 of file qqmllocale_p.h.

◆ numberOptions

QLocale::NumberOptions QQmlLocaleValueType::numberOptions
readwrite

Definition at line 116 of file qqmllocale_p.h.

Referenced by setNumberOptions().

◆ percent

QString QQmlLocaleValueType::percent
read

Definition at line 108 of file qqmllocale_p.h.

◆ pmText

QString QQmlLocaleValueType::pmText
read

Definition at line 114 of file qqmllocale_p.h.

◆ positiveSign

QString QQmlLocaleValueType::positiveSign
read

Definition at line 111 of file qqmllocale_p.h.

◆ textDirection

Qt::LayoutDirection QQmlLocaleValueType::textDirection
read

Definition at line 96 of file qqmllocale_p.h.

◆ uiLanguages

QStringList QQmlLocaleValueType::uiLanguages
read

Definition at line 98 of file qqmllocale_p.h.

◆ weekDays

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

Definition at line 97 of file qqmllocale_p.h.

◆ zeroDigit

QString QQmlLocaleValueType::zeroDigit
read

Definition at line 109 of file qqmllocale_p.h.


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