summaryrefslogtreecommitdiffstats
path: root/doc/src/porting/qt4-sql.qdoc
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2011-02-17 12:14:01 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2011-02-17 12:14:01 (GMT)
commitf5f2eb86b5a9fb4bcc479a4fdba4024e5544ba24 (patch)
treef0a0cc24f418c40cc03a61e493e7412c5d9a88f9 /doc/src/porting/qt4-sql.qdoc
parent45153a37e4d9e39e8c326a0f33ea17be49bb29e2 (diff)
parentebd3c48478539c7b2ec76af5c385b690460c3e15 (diff)
downloadQt-f5f2eb86b5a9fb4bcc479a4fdba4024e5544ba24.zip
Qt-f5f2eb86b5a9fb4bcc479a4fdba4024e5544ba24.tar.gz
Qt-f5f2eb86b5a9fb4bcc479a4fdba4024e5544ba24.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-team into 4.7
Diffstat (limited to 'doc/src/porting/qt4-sql.qdoc')
-rw-r--r--doc/src/porting/qt4-sql.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/porting/qt4-sql.qdoc b/doc/src/porting/qt4-sql.qdoc
index bafaacb..2a5a206 100644
--- a/doc/src/porting/qt4-sql.qdoc
+++ b/doc/src/porting/qt4-sql.qdoc
@@ -104,12 +104,12 @@
The simplest way to present data from a database is to simply
combine a QSqlQueryModel with a QTableView:
- \snippet doc/src/snippets/code/doc_src_qt4-sql.qdoc 0
+ \snippet doc/src/snippets/code/doc_src_qt4-sql.cpp 0
To present the contents of a single table, we can use
QSqlTableModel instead:
- \snippet doc/src/snippets/code/doc_src_qt4-sql.qdoc 1
+ \snippet doc/src/snippets/code/doc_src_qt4-sql.cpp 1
In practice, it's common that we need to customize the rendering
of a field in the database. In that case, we can create our own