summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/src/sql-programming.qdoc
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2012-10-12 14:06:53 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2012-10-12 15:06:30 +0200
commit6234dadf09af4fc7f58b7707a436a08f8ab0318c (patch)
tree5e6f5d7c49f86166e132cebfd53cf9a77f6eba7d /src/sql/doc/src/sql-programming.qdoc
parent9f657424aafbcbde82bb39673a6f028d106ccda6 (diff)
doc: Fix a few doc errors for QtSQL
The examples include path already contains 'sql', so we can't prefix the includes with 'sql' as well. Changing the include path to also include the parent examples directory is not an option, as qdoc will then try to generate output for example single example. Change-Id: Ifae07af86e60e6105a0625f29fbd6bc8f73b2550 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/sql/doc/src/sql-programming.qdoc')
-rw-r--r--src/sql/doc/src/sql-programming.qdoc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/sql/doc/src/sql-programming.qdoc b/src/sql/doc/src/sql-programming.qdoc
index 3fe2373a73..aa2eb243b8 100644
--- a/src/sql/doc/src/sql-programming.qdoc
+++ b/src/sql/doc/src/sql-programming.qdoc
@@ -463,10 +463,10 @@
The following code snippet shows how the QSqlRelationalTableModel
was set up:
- \snippet sql/relationaltablemodel/relationaltablemodel.cpp 0
+ \snippet relationaltablemodel/relationaltablemodel.cpp 0
\codeline
- \snippet sql/relationaltablemodel/relationaltablemodel.cpp 1
- \snippet sql/relationaltablemodel/relationaltablemodel.cpp 2
+ \snippet relationaltablemodel/relationaltablemodel.cpp 1
+ \snippet relationaltablemodel/relationaltablemodel.cpp 2
See the QSqlRelationalTableModel documentation for details.
*/
@@ -503,7 +503,7 @@
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
views will reflect the changes immediately. The
- \l{sql/tablemodel}{Table Model} example shows how it works.
+ \l{tablemodel}{Table Model} example shows how it works.
View classes display a header at the top to label the columns. To
change the header texts, call
@@ -511,7 +511,7 @@
model. The header's labels default to the table's field names.
For example:
- \snippet sql/relationaltablemodel/relationaltablemodel.cpp 3
+ \snippet relationaltablemodel/relationaltablemodel.cpp 3
QTableView also has a vertical header on the left with numbers
identifying the rows. If you insert rows programmatically using
@@ -545,16 +545,16 @@
read-write. The following two functions make fields 1 and 2 of a
query model editable:
- \snippet sql/querymodel/editablesqlmodel.cpp 0
+ \snippet querymodel/editablesqlmodel.cpp 0
\codeline
- \snippet sql/querymodel/editablesqlmodel.cpp 1
+ \snippet querymodel/editablesqlmodel.cpp 1
The setFirstName() helper function is defined as follows:
- \snippet sql/querymodel/editablesqlmodel.cpp 2
+ \snippet querymodel/editablesqlmodel.cpp 2
The setLastName() function is similar. See the
- \l{sql/querymodel}{Query Model} example for the complete source code.
+ \l{querymodel}{Query Model} example for the complete source code.
Subclassing a model makes it possible to customize it in many
ways: You can provide tooltips for the items, change the
@@ -570,7 +570,7 @@
\image relationaltable.png Editing a foreign key in a relational table
- The \l{sql/relationaltablemodel}{Relational Table Model} example
+ The \l{relationaltablemodel}{Relational Table Model} example
illustrates how to use QSqlRelationalTableModel in conjunction with
QSqlRelationalDelegate to provide tables with foreign key
support.
@@ -603,7 +603,7 @@
\image qdatawidgetmapper-simple.png
- The \l{sql/books}{Books} example shows how information can
+ The \l{books}{Books} example shows how information can
be presented for easy access by using QDataWidgetMapper and a set of
simple input widgets.
*/