summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/doc/src')
-rw-r--r--src/sql/doc/src/sql-driver.qdoc2
-rw-r--r--src/sql/doc/src/sql-programming.qdoc8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/sql/doc/src/sql-driver.qdoc b/src/sql/doc/src/sql-driver.qdoc
index 28e17d2301..2747d934b2 100644
--- a/src/sql/doc/src/sql-driver.qdoc
+++ b/src/sql/doc/src/sql-driver.qdoc
@@ -457,7 +457,7 @@
SQL result must get a new handle after each call to any of QSqlResult
fetch functions. Example:
- \snippet code/doc_src_sql-driver.cpp 36
+ \snippet code/doc_src_sql-driver_snippet.cpp 36
While reading the results of a forward-only query with PostgreSQL,
the database connection cannot be used to execute other queries.
diff --git a/src/sql/doc/src/sql-programming.qdoc b/src/sql/doc/src/sql-programming.qdoc
index f20b1292fc..56bb48b27b 100644
--- a/src/sql/doc/src/sql-programming.qdoc
+++ b/src/sql/doc/src/sql-programming.qdoc
@@ -480,15 +480,15 @@
The following example creates a view based on an SQL data model:
- \snippet sqldatabase/sqldatabase.cpp 17
- \snippet sqldatabase/sqldatabase.cpp 18
- \snippet sqldatabase/sqldatabase.cpp 19
+ \snippet sqldatabase/sqldatabase_snippet.cpp 17
+ \snippet sqldatabase/sqldatabase_snippet.cpp 18
+ \snippet sqldatabase/sqldatabase_snippet.cpp 19
If the model is a read-write model (e.g., QSqlTableModel), the
view lets the user edit the fields. You can disable this by
calling
- \snippet sqldatabase/sqldatabase.cpp 20
+ \snippet sqldatabase/sqldatabase_snippet.cpp 20
You can use the same model as a data source for multiple views.
If the user edits the model through one of the views, the other