Fix the chart itemview example

Commit 054a4aa7dd (being a SIC)
breaks QAbstractItemViews that used to override the
dataChanged(QModelIndex, QModelIndex) method, so this change
updates the dataChanged signature accordingly.

Change-Id: I632b6625c12dcb09abcb737ea2648efeeedeee8e
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
bb10
Giuseppe D'Angelo 2012-02-02 17:40:27 +00:00 committed by Qt by Nokia
parent 4b64e38ddc
commit f0cac3f42f
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,8 @@ PieView::PieView(QWidget *parent)
}
void PieView::dataChanged(const QModelIndex &topLeft,
const QModelIndex &bottomRight)
const QModelIndex &bottomRight,
const QSet<int> &)
{
QAbstractItemView::dataChanged(topLeft, bottomRight);

View File

@ -68,7 +68,7 @@ public:
QModelIndex indexAt(const QPoint &point) const;
protected slots:
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QSet<int> &);
void rowsInserted(const QModelIndex &parent, int start, int end);
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);