diff options
author | Bea Lam <bea.lam@nokia.com> | 2012-08-28 11:21:19 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 06:21:58 +0200 |
commit | 87679b3499e68957998b98bf13b6d98b3aa8b4c3 (patch) | |
tree | 4e6d613173a1e6abf5ef0afc65a615fd6b7fdbfe /src/imports | |
parent | abaee0a83588f86740ea553ff7623a789b6b787a (diff) |
Docs - add missing images and code, clean up sections
Includes the removal of concepts/modelviewsdata/localstorage.qdoc
since that is a duplicate of the existing Local Storage module docs.
Also removes classes from whatsnew.qdoc that are internal.
Change-Id: I4170c1797bbec09bb67784b0b2ad67fd990365a8
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/localstorage/plugin.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp index a16b74a96b..ab67d2c04f 100644 --- a/src/imports/localstorage/plugin.cpp +++ b/src/imports/localstorage/plugin.cpp @@ -468,16 +468,16 @@ through the data. \section1 Detailed Description - To use the types in this module, import the module with a namespace and call the - relevant functions using the namespace qualifier: + To use the types in this module, import the module and call the + relevant functions using the \c LocalStorage type: \code - import QtQuick.LocalStorage 2.0 as LS + import QtQuick.LocalStorage 2.0 import QtQuick 2.0 Item { Component.onCompleted: { - var db = LS.openDatabaseSync(...) + var db = LocalStorage.openDatabaseSync(...) } } \endcode @@ -491,19 +491,19 @@ Database connections are automatically closed during Javascript garbage collecti The API can be used from JavaScript functions in your QML: -\snippet qml/sqllocalstorage/hello.qml 0 +\snippet localstorage/localstorage/hello.qml 0 The API conforms to the Synchronous API of the HTML5 Web Database API, \link http://www.w3.org/TR/2009/WD-webdatabase-20091029/ W3C Working Draft 29 October 2009\endlink. -The \l{declarative/sqllocalstorage}{SQL Local Storage example} demonstrates the basics of +The \l{localstorage/localstorage}{SQL Local Storage example} demonstrates the basics of using the Offline Storage API. \section3 Open or create a databaseData \code import QtQuick.LocalStorage 2.0 as LS -db = LS.openDatabaseSync(identifier, version, description, estimated_size, callback(db)) +db = Sql.openDatabaseSync(identifier, version, description, estimated_size, callback(db)) \endcode The above code returns the database identified by \e identifier. If the database does not already exist, it is created, and the function \e callback is called with the database as a parameter. \e description |