summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqlquery.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-06 22:38:59 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-06 22:38:59 (GMT)
commit101184ea92171c303d240917f34815730a5e9fab (patch)
treee265a681a4146f00878cb3a9b6297f6b8b6e0a95 /src/sql/kernel/qsqlquery.cpp
parent396a06a52a0f00639c9e528caf80ae2294e80bd2 (diff)
parent2d2b4e8a77a30449d8b4ebc88979b3aff45a8222 (diff)
downloadQt-101184ea92171c303d240917f34815730a5e9fab.zip
Qt-101184ea92171c303d240917f34815730a5e9fab.tar.gz
Qt-101184ea92171c303d240917f34815730a5e9fab.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into kinetic-declarativeui
Diffstat (limited to 'src/sql/kernel/qsqlquery.cpp')
-rw-r--r--src/sql/kernel/qsqlquery.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp
index dfe30e7..5125546 100644
--- a/src/sql/kernel/qsqlquery.cpp
+++ b/src/sql/kernel/qsqlquery.cpp
@@ -811,13 +811,18 @@ bool QSqlQuery::isForwardOnly() const
Forward only mode can be (depending on the driver) more memory
efficient since results do not need to be cached. It will also
improve performance on some databases. For this to be true, you must
- call \c setForwardMode() before the query is prepared or executed.
+ call \c setForwardOnly() before the query is prepared or executed.
Note that the constructor that takes a query and a database may
execute the query.
Forward only mode is off by default.
- \sa isForwardOnly(), next(), seek()
+ Setting forward only to false is a suggestion to the database engine,
+ which has the final say on whether a result set is forward only or
+ scrollable. isForwardOnly() will always return the correct status of
+ the result set.
+
+ \sa isForwardOnly(), next(), seek(), QSqlResult::setForwardOnly()
*/
void QSqlQuery::setForwardOnly(bool forward)
{