diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-25 17:46:33 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-10-25 17:46:33 (GMT) |
commit | 187baf3b5e4fe8926bb70ee4e6e868ccc51d4514 (patch) | |
tree | 7517568b333bcc5679e7a165c48aaa7bd06a66fb /doc/src/snippets/sqldatabase/sqldatabase.cpp | |
parent | 264e471fd780ea9570daa7be608939c9fff75114 (diff) | |
parent | 50e915e4fe8b6bcd579f5fae31bfa9d736f9b6f5 (diff) | |
download | Qt-187baf3b5e4fe8926bb70ee4e6e868ccc51d4514.zip Qt-187baf3b5e4fe8926bb70ee4e6e868ccc51d4514.tar.gz Qt-187baf3b5e4fe8926bb70ee4e6e868ccc51d4514.tar.bz2 |
Merge branch 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-master-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: (174 commits)
Fixed spelling.
Fixed many spelling errors.
Fix warning introduced by last commit on hiding of the 'd' member
Fix access to uninitialised memory in case of new throwing
Remove accidentially committed .qmlproject.user file, ignore this filetype
Corrected build fail for autotests
QComboBox popup is shown in incorrect location with bottom CBA
Fix Flipable docs
Fall back to Qt for loading images with DICAPS_COLORKEY.
Implement QWidget::metric PdmNumColors for QWS
Adding ::scroll capabilities to live pixmaps.
Major refactoring: creating a new QPixmapData subclass for live textures.
QS60Style: The QComboBox/QSpinBox text color is not according to theme
Using TLS to store QThreadData on Symbian
In meego, support Format_RGB32 too for eglShared images.
Remove unnecessary rounding
Functions that are externally defined to QtOpenGL needs to be imported.
Make sure d->ranges does not have invalid ranges before processing it.
Added include for missing file for Symbian3
Support for clipboard between Qt and Symbian applications
...
Diffstat (limited to 'doc/src/snippets/sqldatabase/sqldatabase.cpp')
-rw-r--r-- | doc/src/snippets/sqldatabase/sqldatabase.cpp | 2 |
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(); |