diff options
author | Nico Vertriest <nico.vertriest@qt.io> | 2020-01-28 12:41:16 +0100 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-03-20 06:53:59 +0100 |
commit | 0359a82e6ef538316e550e7fa7c6dee8db72a225 (patch) | |
tree | ed1b3067b429b0edb986a9b6afc64f0c31664d6e /src/sql/doc/src/sql-programming.qdoc | |
parent | b77e239c5e7d3befbd48200aa51c5ff9b51d07f0 (diff) |
Doc: make Qt Sql snippets compilable
Task-number: QTBUG-81496
Change-Id: Id6206e9179c2e8157c99e777a3de35bd83d49e34
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/sql/doc/src/sql-programming.qdoc')
-rw-r--r-- | src/sql/doc/src/sql-programming.qdoc | 8 |
1 files changed, 4 insertions, 4 deletions
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 |