From f9caf48beebb935c7c1ca71745b2646b872b65d1 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 7 Jun 2012 10:39:42 +0200 Subject: Use a QVector instead of a QSet in itemviews/models. The QSet is a more expensive container to use and create, so it should be avoided. This is source incompatible compared to earlier Qt 5 for QAbstractItemView subclasses which reimplement dataChanged, but this patch changes nothing compared to already-present SiC compared to Qt 4. Change-Id: Id95391dfd62a0a7f487a8765790b007badefb937 Reviewed-by: Lars Knoll Reviewed-by: Olivier Goffart --- examples/itemviews/chart/pieview.cpp | 2 +- examples/itemviews/chart/pieview.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/itemviews/chart/pieview.cpp b/examples/itemviews/chart/pieview.cpp index 7305181b44..30f3255689 100644 --- a/examples/itemviews/chart/pieview.cpp +++ b/examples/itemviews/chart/pieview.cpp @@ -63,7 +63,7 @@ PieView::PieView(QWidget *parent) void PieView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, - const QSet &) + const QVector &) { QAbstractItemView::dataChanged(topLeft, bottomRight); diff --git a/examples/itemviews/chart/pieview.h b/examples/itemviews/chart/pieview.h index 7ee48565e8..208159bf73 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, const QSet &); + void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector & = QVector()); void rowsInserted(const QModelIndex &parent, int start, int end); void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); -- cgit v1.2.3