diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2010-11-04 05:47:51 (GMT) |
---|---|---|
committer | Michael Goddard <michael.goddard@nokia.com> | 2011-02-04 05:41:02 (GMT) |
commit | d300e8208928084b62bbde01fb81bd66bc967bc8 (patch) | |
tree | 42114e68ad6c4ab6fb94c58a6b4fdf07a34c7831 /src/sql/models | |
parent | 741a5114c2c6bf4d89068d861db90c456cce371b (diff) | |
download | Qt-d300e8208928084b62bbde01fb81bd66bc967bc8.zip Qt-d300e8208928084b62bbde01fb81bd66bc967bc8.tar.gz Qt-d300e8208928084b62bbde01fb81bd66bc967bc8.tar.bz2 |
Try to document that invalid database arguments use the default database.
Some places documented this, some didn't.
Change-Id: Id66678dbcd9af6ec9687db745ba6f5506e951d1d
Task-number: QTBUG-3240
Reviewed-by: Charles Yin
Diffstat (limited to 'src/sql/models')
-rw-r--r-- | src/sql/models/qsqlquerymodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sql/models/qsqlquerymodel.cpp b/src/sql/models/qsqlquerymodel.cpp index fbc31ff..d1051de 100644 --- a/src/sql/models/qsqlquerymodel.cpp +++ b/src/sql/models/qsqlquerymodel.cpp @@ -376,7 +376,8 @@ void QSqlQueryModel::setQuery(const QSqlQuery &query) /*! \overload Executes the query \a query for the given database connection \a - db. If no database is specified, the default connection is used. + db. If no database (or an invalid database) is specified, the + default connection is used. lastError() can be used to retrieve verbose information if there was an error setting the query. |