summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/src/sql-programming.qdoc
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-12 20:08:56 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-12 20:08:56 +0200
commit94c576cf6607d3e9880fdaf6c8a51216bf2d2147 (patch)
tree32e42bdb8bcb869c894023f9494c2e2df310d585 /src/sql/doc/src/sql-programming.qdoc
parent2ad7f6ddf5042d7442c97a89b083ca2853cf5721 (diff)
parente893e657e5c976f96e7e627ca90531934129bf4b (diff)
Merge remote-tracking branch 'origin/5.8' into 5.9
Diffstat (limited to 'src/sql/doc/src/sql-programming.qdoc')
-rw-r--r--src/sql/doc/src/sql-programming.qdoc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sql/doc/src/sql-programming.qdoc b/src/sql/doc/src/sql-programming.qdoc
index 39381ff296..ece89a30ab 100644
--- a/src/sql/doc/src/sql-programming.qdoc
+++ b/src/sql/doc/src/sql-programming.qdoc
@@ -227,7 +227,7 @@
Databases, please refer to \l{Data Types for Qt-supported Database
Systems} {this table}.
- You can iterate back and forth using QSqlQuery::next(),
+ You can navigate within the dataset using QSqlQuery::next(),
QSqlQuery::previous(), QSqlQuery::first(), QSqlQuery::last(), and
QSqlQuery::seek(). The current row index is returned by
QSqlQuery::at(), and the total number of rows in the result set
@@ -242,11 +242,10 @@
\snippet sqldatabase/sqldatabase.cpp 33
- If you iterate through a result set only using next() and seek()
- with positive values, you can call
- QSqlQuery::setForwardOnly(true) before calling exec(). This is an
- easy optimization that will speed up the query significantly when
- operating on large result sets.
+ If you navigate within a result set, and use next() and seek()
+ only for browsing forward, you can call QSqlQuery::setForwardOnly(true)
+ before calling exec(). This is an easy optimization that will speed up
+ the query significantly when operating on large result sets.
\section2 Inserting, Updating, and Deleting Records
@@ -592,7 +591,7 @@
QDataWidgetMapper operates on a specific database table, mapping items
in the table on a row-by-row or column-by-column basis. As a result,
- using QDataWidgetMapper with a SQL model is as simple as using it with
+ using QDataWidgetMapper with an SQL model is as simple as using it with
any other table model.
\image qdatawidgetmapper-simple.png