Link between "QML Basic Type: date" and QML Date object documentation.
authorMitch Curtis <mitch.curtis@digia.com>
Fri, 19 Jul 2013 09:15:20 +0000 (11:15 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 23 Jul 2013 11:43:51 +0000 (13:43 +0200)
The basic date type seems useless if you don't know it can be used as
as JavaScript date (with QML extensions).

Task-number: QTBUG-32492

Change-Id: I14962f4e57522f5515f0e78d484aa59fcd9dff3c
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>

src/qml/doc/src/external-resources.qdoc
src/qml/doc/src/javascript/date.qdoc
src/qml/doc/src/qmltypereference.qdoc

index 0832564..671246d 100644 (file)
@@ -35,3 +35,7 @@
     \title W3Schools JavaScript Reference
 */
 
+/*!
+    \externalpage https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
+    \title Mozilla Developer Network Date Reference
+*/
\ No newline at end of file
index 7da24d4..085d988 100644 (file)
@@ -30,7 +30,8 @@
     \inqmlmodule QtQml 2
     \brief Provides date functions
 
-    The QML Date object extends the JS Date object with
+    The QML Date object extends the
+    \l{Mozilla Developer Network Date Reference}{JS Date object} with
     locale aware functions.
 
     Functions that accept a locale format may be either an enumeration
index 3def320..0b363d4 100644 (file)
@@ -104,14 +104,10 @@ When integrating with C++, note that any QDate value
 \l{qtqml-cppintegration-data.html}{passed into QML from C++} is automatically
 converted into a \c date value, and vice-versa.
 
-Note that the date type has comparison semantics which match
-those of the JavaScript Date object.  To compare the value
-of two date properties, you should compare their "toString()"
-values.
+This basic type is provided by the QML language. It can be implicitly converted
+to a \l{QtQml2::Date}{Date} object.
 
-This basic type is provided by the QML language.
-
-\sa {QML Basic Types}
+\sa {QtQml2::Date}{QML Date object}, {QML Basic Types}
 */
 
 /*!