diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2020-02-21 01:00:10 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-02-21 09:00:37 +0100 |
commit | f6808f89a8c17e046f53b0bb5ff36cd9e24e9772 (patch) | |
tree | 43df8901d99f1e134d7688bdf0d30d28c1679147 /src/qml/qml/v8/qqmlbuiltinfunctions.cpp | |
parent | e33e250080dbbb01015daafc8a79b569806d9467 (diff) | |
parent | 5054bb49a88a8ab76f586f79b6ef62a9142e6c83 (diff) |
Merge remote-tracking branch 'origin/5.15' into dev
Conflicts:
tests/auto/quick/qquickmousearea/BLACKLIST
Change-Id: I3de2c6377d57f5f9204d2cfc688d50a7a0b4150c
Diffstat (limited to 'src/qml/qml/v8/qqmlbuiltinfunctions.cpp')
-rw-r--r-- | src/qml/qml/v8/qqmlbuiltinfunctions.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp index d47c2604ae..f4e529f2de 100644 --- a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp +++ b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp @@ -803,7 +803,7 @@ parameter may be any of the possible format values as described for \l{QtQml::Qt::formatDateTime()}{Qt.formatDateTime()}. If \a format is not specified, \a date is formatted using -\l {QLocale::FormatType::ShortFormat}{Locale.ShortFormat} using the +\l {QLocale::FormatType}{Locale.ShortFormat} using the default locale. \sa Locale @@ -832,7 +832,7 @@ possible format values as described for \l{QtQml::Qt::formatDateTime()}{Qt.formatDateTime()}. If \a format is not specified, \a time is formatted using -\l {QLocale::FormatType::ShortFormat}{Locale.ShortFormat} using the default locale. +\l {QLocale::FormatType}{Locale.ShortFormat} using the default locale. \sa Locale */ @@ -857,13 +857,13 @@ ReturnedValue QtObject::method_formatTime(const FunctionObject *b, const Value * \qmlmethod string Qt::formatDateTime(datetime dateTime, variant format, variant localeFormatOption) Returns a string representation of \a dateTime, optionally formatted using -\a format. +\a format and \a localeFormatOption. The \a dateTime parameter may be a JavaScript \c Date object, a \l{date}{date} property, a QDate, QTime, or QDateTime value. If \a format is not provided, \a dateTime is formatted using -\l {QLocale::FormatType::ShortFormat}{Locale.ShortFormat} using the +\l {QLocale::FormatType}{Locale.ShortFormat} using the default locale. Otherwise, \a format should be either: \list @@ -874,9 +874,9 @@ default locale. Otherwise, \a format should be either: \endlist If \a format specifies a locale object, \dateTime is formatted -with \li{QLocale::toString}. In this case, localeFormatType can hold a value +with \l{QLocale::toString}. In this case, \a localeFormatOption can hold a value of type \l {QLocale::FormatType} to further tune the formatting. If none is -provided, \l {QLocale::FormatType::ShortFormat}{Locale.ShortFormat} is used. +provided, \l {QLocale::FormatType}{Locale.ShortFormat} is used. If \a format specifies a format string, it should use the following expressions to specify the date: |