summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/chart/pieview.h
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@digia.com>2012-11-22 13:40:51 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-22 13:56:25 +0100
commitab0a007cb369a8e9a1bf43c9386a77d36199759b (patch)
tree495cbe311be5b5a7cda956b556e0a67b53bf523c /examples/widgets/itemviews/chart/pieview.h
parent49a4d058cc1ee38adcd292e67d49a8644538394c (diff)
QtBase: examples/widgets/itemviews code style
Change-Id: I78a7745f7dc3add3fd7780220118d1b35b50a941 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/itemviews/chart/pieview.h')
-rw-r--r--examples/widgets/itemviews/chart/pieview.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/examples/widgets/itemviews/chart/pieview.h b/examples/widgets/itemviews/chart/pieview.h
index 517aa8e272..a6a0612ff3 100644
--- a/examples/widgets/itemviews/chart/pieview.h
+++ b/examples/widgets/itemviews/chart/pieview.h
@@ -42,18 +42,6 @@
#define PIEVIEW_H
#include <QAbstractItemView>
-#include <QFont>
-#include <QItemSelection>
-#include <QItemSelectionModel>
-#include <QModelIndex>
-#include <QRect>
-#include <QSize>
-#include <QPoint>
-#include <QWidget>
-
-QT_BEGIN_NAMESPACE
-class QRubberBand;
-QT_END_NAMESPACE
//! [0]
class PieView : public QAbstractItemView
@@ -68,7 +56,8 @@ public:
QModelIndex indexAt(const QPoint &point) const;
protected slots:
- void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> & = QVector<int>());
+ void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight,
+ const QVector<int> &roles = QVector<int>());
void rowsInserted(const QModelIndex &parent, int start, int end);
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
@@ -111,4 +100,4 @@ private:
};
//! [0]
-#endif
+#endif // PIEVIEW_H