diff options
author | Martin Smith <martin.smith@digia.com> | 2013-10-01 13:03:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-02 14:40:01 +0200 |
commit | 4706b1ceff9af9141044ed3cf020ce5624bfa40f (patch) | |
tree | 43672217a945512ddd1704468d1fd4b6e9c153c7 /src/qml/doc/src/javascript | |
parent | 4f50ab594aa2fb1d38981127beca634ad3396489 (diff) |
qdoc: no longer recognizes the version nr in QML refs
All QML references of the form
<QML-module-name><QML-module-version>::<QML-type>::<member-name> have
had the <QML-module-version> removed i.
Task-number: QTBUG-33776
Change-Id: Idde279e0f254cd24ea44f9841662dd81a2c5bbc6
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/qml/doc/src/javascript')
-rw-r--r-- | src/qml/doc/src/javascript/date.qdoc | 20 | ||||
-rw-r--r-- | src/qml/doc/src/javascript/dynamicobjectcreation.qdoc | 16 | ||||
-rw-r--r-- | src/qml/doc/src/javascript/imports.qdoc | 6 | ||||
-rw-r--r-- | src/qml/doc/src/javascript/number.qdoc | 2 |
4 files changed, 22 insertions, 22 deletions
diff --git a/src/qml/doc/src/javascript/date.qdoc b/src/qml/doc/src/javascript/date.qdoc index 367e159431..208e2be3f7 100644 --- a/src/qml/doc/src/javascript/date.qdoc +++ b/src/qml/doc/src/javascript/date.qdoc @@ -132,7 +132,7 @@ hour, if DST is currently in effect, while it was not for the time specified, or vice versa. - \sa {QtQml2::Locale}{Locale} + \sa {QtQml::Locale}{Locale} */ /*! @@ -142,7 +142,7 @@ suitable for the specified \a locale in the specified \a format. - If \a format is not specified, \l {QtQml2::Locale}{Locale.LongFormat} will + If \a format is not specified, \l {QtQml::Locale}{Locale.LongFormat} will be used. If \a locale is not specified, the default locale will be used. @@ -164,7 +164,7 @@ Converts the Date to a string containing the date suitable for the specified \a locale in the specified \a format. - If \a format is not specified, \l {QtQml2::Locale}{Locale.LongFormat} will + If \a format is not specified, \l {QtQml::Locale}{Locale.LongFormat} will be used. If \a locale is not specified, the default locale will be used. @@ -186,7 +186,7 @@ Converts the Date to a string containing the time suitable for the specified \a locale in the specified \a format. - If \a format is not specified, \l {QtQml2::Locale}{Locale.LongFormat} will + If \a format is not specified, \l {QtQml::Locale}{Locale.LongFormat} will be used. If \a locale is not specified, the default locale will be used. @@ -205,10 +205,10 @@ /*! \qmlmethod string Date::fromLocaleString(locale, dateTimeString, format) - Converts the datetime string \a dateTimeString to a \l {QtQml2::Date}{Date} + Converts the datetime string \a dateTimeString to a \l {QtQml::Date}{Date} object using \a locale and \a format. - If \a format is not specified, \l {QtQml2::Locale}{Locale.LongFormat} will + If \a format is not specified, \l {QtQml::Locale}{Locale.LongFormat} will be used. If \a locale is not specified, the default locale will be used. @@ -232,10 +232,10 @@ /*! \qmlmethod string Date::fromLocaleDateString(locale, dateString, format) - Converts the date string \a dateString to a \l {QtQml2::Date}{Date} object + Converts the date string \a dateString to a \l {QtQml::Date}{Date} object using \a locale and \a format. - If \a format is not specified, \l {QtQml2::Locale}{Locale.LongFormat} will + If \a format is not specified, \l {QtQml::Locale}{Locale.LongFormat} will be used. If \a locale is not specified, the default locale will be used. @@ -262,10 +262,10 @@ /*! \qmlmethod string Date::fromLocaleTimeString(locale, timeString, format) - Converts the time string \a timeString to a \l {QtQml2::Date}{Date} object + Converts the time string \a timeString to a \l {QtQml::Date}{Date} object using \a locale and \a format. - If \a format is not specified, \l {QtQml2::Locale}{Locale.LongFormat} will + If \a format is not specified, \l {QtQml::Locale}{Locale.LongFormat} will be used. If \a locale is not specified, the default locale will be used. diff --git a/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc b/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc index e54404d2fd..1372858ca5 100644 --- a/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc +++ b/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc @@ -42,8 +42,8 @@ demonstration of the concepts discussed on this page. \section1 Creating Objects Dynamically There are two ways to create objects dynamically from JavaScript. You can -either call \l {QtQml2::Qt::createComponent()}{Qt.createComponent()} to -dynamically create a \l Component object, or use \l{QtQml2::Qt::createQmlObject()} +either call \l {QtQml::Qt::createComponent()}{Qt.createComponent()} to +dynamically create a \l Component object, or use \l{QtQml::Qt::createQmlObject()} {Qt.createQmlObject()} to create an object from a string of QML. Creating a component is better if you have an existing component defined in a QML document and you want to dynamically create instances of that component. Otherwise, @@ -54,7 +54,7 @@ generated at runtime. \section2 Creating a Component Dynamically To dynamically load a component defined in a QML file, call the -\l {QtQml2::Qt::createComponent()}{Qt.createComponent()} function in the +\l {QtQml::Qt::createComponent()}{Qt.createComponent()} function in the \l {QmlGlobalQtObject}{Qt object}. This function takes the URL of the QML file as its only argument and creates a \l Component object from this URL. @@ -113,7 +113,7 @@ created object is a visual (Qt Quick) object. The created object will become a child of the \c appWindow object in \c main.qml, and appear in the scene. When using files with relative paths, the path should -be relative to the file where \l {QtQml2::Qt::createComponent()} +be relative to the file where \l {QtQml::Qt::createComponent()} {Qt.createComponent()} is executed. To connect signals to (or receive signals from) dynamically created objects, @@ -127,7 +127,7 @@ It is also possible to instantiate components without blocking via the \section2 Creating an Object from a String of QML If the QML is not defined until runtime, you can create a QML object from -a string of QML using the \l{QtQml2::Qt::createQmlObject()}{Qt.createQmlObject()} +a string of QML using the \l{QtQml::Qt::createQmlObject()}{Qt.createQmlObject()} function, as in the following example: \snippet qml/createQmlObject.qml 0 @@ -153,9 +153,9 @@ first, the bindings in the dynamic object will no longer work. The actual creation context depends on how an object is created: \list -\li If \l {QtQml2::Qt::createComponent()}{Qt.createComponent()} is used, the +\li If \l {QtQml::Qt::createComponent()}{Qt.createComponent()} is used, the creation context is the QQmlContext in which this method is called -\li If \l{QtQml2::Qt::createQmlObject()}{Qt.createQmlObject()} is called, the +\li If \l{QtQml::Qt::createQmlObject()}{Qt.createQmlObject()} is called, the creation context is the context of the parent object passed to this method \li If a \c {Component{}} object is defined and \l {Component::createObject()} {createObject()} or \l {Component::incubateObject()}{incubateObject()} is @@ -221,7 +221,7 @@ Item { This would result in an error, since objects can only be dynamically destroyed if they were dynamically created. -Objects created with \l{QtQml2::Qt::createQmlObject()}{Qt.createQmlObject()} +Objects created with \l{QtQml::Qt::createQmlObject()}{Qt.createQmlObject()} can similarly be destroyed using \c destroy(): \snippet qml/createQmlObject.qml 0 diff --git a/src/qml/doc/src/javascript/imports.qdoc b/src/qml/doc/src/javascript/imports.qdoc index 809b74ed52..fa9aa9794c 100644 --- a/src/qml/doc/src/javascript/imports.qdoc +++ b/src/qml/doc/src/javascript/imports.qdoc @@ -125,14 +125,14 @@ When a JavaScript file is imported, it must be imported with a qualifier. The functions in that file are then accessible from the importing script via the qualifier (that is, as \tt{Qualifier.functionName(params)}). Sometimes it is desirable to have the functions made available in the importing context without -needing to qualify them, and in this circumstance the \l{QtQml2::Qt::include()} +needing to qualify them, and in this circumstance the \l{QtQml::Qt::include()} {Qt.include()} function may be used to include one JavaScript file from another. This copies all functions from the other file into the current file's namespace, but ignores all pragmas and imports defined in that file. For example, the QML code below left calls \c showCalculations() in \c script.js, which in turn can call \c factorial() in \c factorial.js, as it has included -\c factorial.js using \l {QtQml2::Qt::include()}{Qt.include()}. +\c factorial.js using \l {QtQml::Qt::include()}{Qt.include()}. \table \row @@ -142,7 +142,7 @@ which in turn can call \c factorial() in \c factorial.js, as it has included \li \snippet qml/integrating-javascript/includejs/factorial.js 0 \endtable -Notice that calling \l {QtQml2::Qt::include()}{Qt.include()} copies all functions +Notice that calling \l {QtQml::Qt::include()}{Qt.include()} copies all functions from \c factorial.js into the \c MyScript namespace, which means the QML component can also access \c factorial() directly as \c MyScript.factorial(). diff --git a/src/qml/doc/src/javascript/number.qdoc b/src/qml/doc/src/javascript/number.qdoc index e3210baca2..1dd7f4213c 100644 --- a/src/qml/doc/src/javascript/number.qdoc +++ b/src/qml/doc/src/javascript/number.qdoc @@ -33,7 +33,7 @@ The QML Number object extends the JS Number object with locale aware functions. - \sa {QtQml2::Locale}{Locale} + \sa {QtQml::Locale}{Locale} */ /*! |