summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-08-16 14:55:29 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-20 21:10:02 +0200
commiteb0e960e74da6b799c4d8f95cb6a22412c4c9466 (patch)
treed5e2240655eb2e2755c76aba06e1c064a9ae3266 /src/widgets/itemviews/qabstractitemview.cpp
parentfe0a6e57a045b9db7ad812025ed65a6ba011c68d (diff)
Fix the doc errors in itemmodels and itemviews.
Other errors remain, but they appear to be due to missing links to QtCore documentation (a generic error not specific to itemviews). Change-Id: I7b83380c3754c26d3d42be9ef0c0721ce3127562 Reviewed-by: Shawn Rutledge <shawn.rutledge@nokia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemview.cpp')
-rw-r--r--src/widgets/itemviews/qabstractitemview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp
index 929f7db406..3402b4f3fe 100644
--- a/src/widgets/itemviews/qabstractitemview.cpp
+++ b/src/widgets/itemviews/qabstractitemview.cpp
@@ -3222,9 +3222,13 @@ void QAbstractItemView::update(const QModelIndex &index)
changed items are those from \a topLeft to \a bottomRight
inclusive. If just one item is changed \a topLeft == \a
bottomRight.
+
+ The \a roles which have been changed can either be an empty container (meaning everything
+ has changed), or a non-empty container with the subset of roles which have changed.
*/
-void QAbstractItemView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &)
+void QAbstractItemView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)
{
+ Q_UNUSED(roles);
// Single item changed
Q_D(QAbstractItemView);
if (topLeft == bottomRight && topLeft.isValid()) {