summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/sqldatabase
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-10-09 04:33:05 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-10-09 04:33:05 (GMT)
commitb46b9933b2fa832c971c5362e7533609be99898e (patch)
tree17e0b3e18fce895ed1c4db24f34c540b521c3b31 /doc/src/snippets/sqldatabase
parent6a786ab4bb4a5e1d80ce511461f2018237f1614a (diff)
parent2cc23952af38767ce6e643ffe5fd4f47904cb2a4 (diff)
downloadQt-b46b9933b2fa832c971c5362e7533609be99898e.zip
Qt-b46b9933b2fa832c971c5362e7533609be99898e.tar.gz
Qt-b46b9933b2fa832c971c5362e7533609be99898e.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: (39 commits) Added missing native separator transforms. Doc: tuning search reasult box qdoc: Don't generate html output for png files. Doc: Correcting Windows CE 6.0 to Windows Embedded CE 6.0 Doc: correcting bug - lenght() pointed to setLength() in "See also" section. Correct link is resize() Doc: correct spelling Doc: correcting spelling - qdbusxml2dcpp to qdbusxml2cpp Doc: correcting grammar on the installation pages Doc: correcting broken link to labs Doc: adding note to function QWSKeyboardHandler::processKeycode - that it was added in Qt 4.6 Doc: correcting typo Doc: Fixing bug - line too long and not visible. Breaking the line in two Doc: Fixing typo Doc: Fixing snippet bug. Path pointing to the wrong snippet Doc: Fixed doc references to non-existing API Doc: Fix broken links in QSslConfiguration Added a project file for the Getting Started with QML and changed the Clarified the auto connect enumeration regarding which type of Added installation section and fixed some whitespace. Doc: Fixing spacing bug in columns ...
Diffstat (limited to 'doc/src/snippets/sqldatabase')
-rw-r--r--doc/src/snippets/sqldatabase/sqldatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/sqldatabase/sqldatabase.cpp b/doc/src/snippets/sqldatabase/sqldatabase.cpp
index abe2a67..a027a84 100644
--- a/doc/src/snippets/sqldatabase/sqldatabase.cpp
+++ b/doc/src/snippets/sqldatabase/sqldatabase.cpp
@@ -280,7 +280,7 @@ QVariant MyModel::data(const QModelIndex &item, int role) const
void QSqlTableModel_snippets()
{
//! [24]
- QSqlTableModel *model = new QSqlTableModel;
+ QSqlTableModel *model = new QSqlTableModel(parentObject, database);
model->setTable("employee");
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
model->select();