aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/localstorage/plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp
index bdb2f80bd8..a16b74a96b 100644
--- a/src/imports/localstorage/plugin.cpp
+++ b/src/imports/localstorage/plugin.cpp
@@ -454,9 +454,9 @@ through the data.
/*!
\qmlmodule QtQuick.LocalStorage 2
\title QML Module QtQuick.LocalStorage 2.0
- \brief Provides a JavaScript module API for accessing a local SQLite database
+ \brief Provides a JavaScript object singleton type for accessing a local SQLite database
- This is a module API for reading and writing to SQLite databases.
+ This is a singleton type for reading and writing to SQLite databases.
\section1 Methods
@@ -699,7 +699,7 @@ public:
void registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == "QtQuick.LocalStorage");
- qmlRegisterModuleApi<QQuickLocalStorage>(uri, 2, 0, module_api_factory);
+ qmlRegisterSingletonType<QQuickLocalStorage>(uri, 2, 0, "LocalStorage", module_api_factory);
}
};