summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2010-03-05 03:09:08 (GMT)
committerBill King <bill.king@nokia.com>2010-03-05 03:09:08 (GMT)
commit3e6a330d2aa6f139347fe29947721368a5186cc3 (patch)
tree64da64d7b133667adb13f9555069ffe16b38b429 /src
parent57c847ed2c0b4116ea791828c41db5edc40fe2f2 (diff)
downloadQt-3e6a330d2aa6f139347fe29947721368a5186cc3.zip
Qt-3e6a330d2aa6f139347fe29947721368a5186cc3.tar.gz
Qt-3e6a330d2aa6f139347fe29947721368a5186cc3.tar.bz2
Update documentation with warning about setForwardOnly
Task-number: QTBUG-8752
Diffstat (limited to 'src')
-rw-r--r--src/sql/kernel/qsqlquery.cpp3
-rw-r--r--src/sql/kernel/qsqlresult.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp
index 430cf1a..f253c82 100644
--- a/src/sql/kernel/qsqlquery.cpp
+++ b/src/sql/kernel/qsqlquery.cpp
@@ -822,6 +822,9 @@ bool QSqlQuery::isForwardOnly() const
scrollable. isForwardOnly() will always return the correct status of
the result set.
+ \note Calling setForwardOnly after execution of the query will result
+ in unexpected results at best, and crashes at worst.
+
\sa isForwardOnly(), next(), seek(), QSqlResult::setForwardOnly()
*/
void QSqlQuery::setForwardOnly(bool forward)
diff --git a/src/sql/kernel/qsqlresult.cpp b/src/sql/kernel/qsqlresult.cpp
index 0c0c31c..6382b42 100644
--- a/src/sql/kernel/qsqlresult.cpp
+++ b/src/sql/kernel/qsqlresult.cpp
@@ -564,6 +564,9 @@ bool QSqlResult::isForwardOnly() const
scrollable. isForwardOnly() will always return the correct status of
the result set.
+ \note Calling setForwardOnly after execution of the query will result
+ in unexpected results at best, and crashes at worst.
+
\sa isForwardOnly(), fetchNext(), QSqlQuery::setForwardOnly()
*/
void QSqlResult::setForwardOnly(bool forward)