From: Giuseppe D'Angelo Date: Thu, 2 Feb 2012 17:40:27 +0000 (+0000) Subject: Fix the chart itemview example X-Git-Tag: qt-v5.0.0-alpha1~1359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0cac3f42fb661a6927a701a2c9b1e3d22e0d6fc;p=profile%2Fivi%2Fqtbase.git Fix the chart itemview example Commit 054a4aa7dddacbe31778c5c5e9ffc9d41f803353 (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 Reviewed-by: Stephen Kelly --- diff --git a/examples/itemviews/chart/pieview.cpp b/examples/itemviews/chart/pieview.cpp index 6d82f2a..dcf3aca 100644 --- a/examples/itemviews/chart/pieview.cpp +++ b/examples/itemviews/chart/pieview.cpp @@ -62,7 +62,8 @@ PieView::PieView(QWidget *parent) } void PieView::dataChanged(const QModelIndex &topLeft, - const QModelIndex &bottomRight) + const QModelIndex &bottomRight, + const QSet &) { QAbstractItemView::dataChanged(topLeft, bottomRight); diff --git a/examples/itemviews/chart/pieview.h b/examples/itemviews/chart/pieview.h index 386a2c3..7ee4856 100644 --- a/examples/itemviews/chart/pieview.h +++ b/examples/itemviews/chart/pieview.h @@ -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 &); void rowsInserted(const QModelIndex &parent, int start, int end); void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);