diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-10-20 00:33:06 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-10-20 00:33:06 (GMT) |
commit | 074bcbc746ab3f8669634ff00af0250b592baa48 (patch) | |
tree | 431ec8b75bbf4dd81bbef940f8ba3f4d3a325c2d /src/declarative/qml/qmlsqldatabase.cpp | |
parent | 6e3639cd4751b957f12bcc3224f1a8c4d15d036c (diff) | |
download | Qt-074bcbc746ab3f8669634ff00af0250b592baa48.zip Qt-074bcbc746ab3f8669634ff00af0250b592baa48.tar.gz Qt-074bcbc746ab3f8669634ff00af0250b592baa48.tar.bz2 |
doc
Record current DB type in INI for future extensibility.
Diffstat (limited to 'src/declarative/qml/qmlsqldatabase.cpp')
-rw-r--r-- | src/declarative/qml/qmlsqldatabase.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlsqldatabase.cpp b/src/declarative/qml/qmlsqldatabase.cpp index b132c55..4a5983d 100644 --- a/src/declarative/qml/qmlsqldatabase.cpp +++ b/src/declarative/qml/qmlsqldatabase.cpp @@ -312,6 +312,9 @@ static QScriptValue qmlsqldatabase_transaction(QScriptContext *context, QScriptE } +/* + Currently documented in doc/src/declarastive/globalobject.qdoc +*/ static QScriptValue qmlsqldatabase_open(QScriptContext *context, QScriptEngine *engine) { QSqlDatabase database; @@ -343,6 +346,7 @@ static QScriptValue qmlsqldatabase_open(QScriptContext *context, QScriptEngine * ini.setValue(QLatin1String("Version"), dbversion); ini.setValue(QLatin1String("Description"), dbdescription); ini.setValue(QLatin1String("EstimatedSize"), dbestimatedsize); + ini.setValue(QLatin1String("DbType"), QLatin1String("QSQLITE")); database.open(); } |