summaryrefslogtreecommitdiffstats
path: root/src/sql/models/qsqltablemodel.cpp
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2020-01-28 12:41:16 +0100
committerPaul Wicking <paul.wicking@qt.io>2020-03-20 06:53:59 +0100
commit0359a82e6ef538316e550e7fa7c6dee8db72a225 (patch)
treeed1b3067b429b0edb986a9b6afc64f0c31664d6e /src/sql/models/qsqltablemodel.cpp
parentb77e239c5e7d3befbd48200aa51c5ff9b51d07f0 (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/models/qsqltablemodel.cpp')
-rw-r--r--src/sql/models/qsqltablemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/models/qsqltablemodel.cpp b/src/sql/models/qsqltablemodel.cpp
index 7d2421d34e..4ce99e2968 100644
--- a/src/sql/models/qsqltablemodel.cpp
+++ b/src/sql/models/qsqltablemodel.cpp
@@ -211,7 +211,7 @@ bool QSqlTableModelPrivate::exec(const QString &stmt, bool prepStatement,
lower-level QSqlQuery and can be used to provide data to view
classes such as QTableView. For example:
- \snippet sqldatabase/sqldatabase.cpp 24
+ \snippet sqldatabase/sqldatabase_snippet.cpp 24
We set the SQL table's name and the edit strategy, then we set up
the labels displayed in the view header. The edit strategy