Changeset 846 for trunk/src/sql/models/qsqlquerymodel.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/sql/models/qsqlquerymodel.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 280 280 if (val.isValid()) 281 281 return val; 282 if (role == Qt::DisplayRole && d->rec.count() > section) 282 283 // See if it's an inserted column (iiq.column() != -1) 284 QModelIndex dItem = indexInQuery(createIndex(0, section)); 285 286 if (role == Qt::DisplayRole && d->rec.count() > section && dItem.column() != -1) 283 287 return d->rec.fieldName(section); 284 288 } … … 306 310 lastError() can be used to retrieve verbose information if there 307 311 was an error setting the query. 312 313 \note Calling setQuery() will remove any inserted columns. 308 314 309 315 \sa query(), QSqlQuery::isActive(), QSqlQuery::setForwardOnly(), lastError() … … 371 377 372 378 Executes the query \a query for the given database connection \a 373 db. If no database is specified, the default connection is used. 379 db. If no database (or an invalid database) is specified, the 380 default connection is used. 374 381 375 382 lastError() can be used to retrieve verbose information if there
Note:
See TracChangeset
for help on using the changeset viewer.