diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2010-11-03 05:45:43 (GMT) |
---|---|---|
committer | Michael Goddard <michael.goddard@nokia.com> | 2011-02-04 05:41:02 (GMT) |
commit | 741a5114c2c6bf4d89068d861db90c456cce371b (patch) | |
tree | 811bdc07b08ac39d82842c896e68fc571c081cdf /src/sql/models/qsqlquerymodel.cpp | |
parent | 3bed865c35d8eb920ba5a68276fdf1690c834a64 (diff) | |
download | Qt-741a5114c2c6bf4d89068d861db90c456cce371b.zip Qt-741a5114c2c6bf4d89068d861db90c456cce371b.tar.gz Qt-741a5114c2c6bf4d89068d861db90c456cce371b.tar.bz2 |
Update some documentation about what happens with select()/setQuery().
Change-Id: I5f1afada766d40273526f2cd7537ad68d5f9d09a
Task-number: QTBUG-12094
Reviewed-by: Charles Yin
Diffstat (limited to 'src/sql/models/qsqlquerymodel.cpp')
-rw-r--r-- | src/sql/models/qsqlquerymodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sql/models/qsqlquerymodel.cpp b/src/sql/models/qsqlquerymodel.cpp index 9800e67..fbc31ff 100644 --- a/src/sql/models/qsqlquerymodel.cpp +++ b/src/sql/models/qsqlquerymodel.cpp @@ -310,6 +310,8 @@ void QSqlQueryModel::queryChange() lastError() can be used to retrieve verbose information if there was an error setting the query. + \note Calling setQuery() will remove any inserted columns. + \sa query(), QSqlQuery::isActive(), QSqlQuery::setForwardOnly(), lastError() */ void QSqlQueryModel::setQuery(const QSqlQuery &query) |