summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/src/sql-programming.qdoc
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-20 11:19:14 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-20 12:31:27 +0200
commit7950b6b283549c98f1e0f981c84b68071a13b616 (patch)
treecf7281872045ebd57c68e10064ff0f400084aa13 /src/sql/doc/src/sql-programming.qdoc
parent58d2927861d3e57cac4f6db599e209d2bfb17a2c (diff)
parent0794d61c822585530243f638687b8a75f0a15d0c (diff)
Merge remote-tracking branch 'origin/5.9' into dev
Conflicts: src/corelib/tools/qbytearray.h src/corelib/tools/qdatetime.h src/corelib/tools/qstring.h src/corelib/tools/qversionnumber.h src/plugins/platforms/android/qandroidplatformintegration.cpp tests/auto/corelib/tools/qhashfunctions/tst_qhashfunctions.cpp Change-Id: Iefd92a435e687a76cd593099e40d9a9620a1454d
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