aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/extending/chapter2-methods/piechart.h
diff options
context:
space:
mode:
authorDamian Jansen <damian.jansen@nokia.com>2011-08-30 16:18:20 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-05 03:09:09 +0200
commit76dd4f8af9c48a685cb50bfa02389b392bc12a5a (patch)
tree959044545ec8b8b5d6ef40489c02d4885d4ec619 /examples/declarative/tutorials/extending/chapter2-methods/piechart.h
parentf22ae0f5f18a354bf3addd8023ad8b8810e42bac (diff)
Update extension tutorials and examples to QtQuick2
Also add missing licence header and update example tests Change-Id: Ic2dc8c893ddf22f646eaeba86b6f3b4a2772726c Reviewed-on: http://codereview.qt.nokia.com/3844 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Diffstat (limited to 'examples/declarative/tutorials/extending/chapter2-methods/piechart.h')
-rw-r--r--examples/declarative/tutorials/extending/chapter2-methods/piechart.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/tutorials/extending/chapter2-methods/piechart.h b/examples/declarative/tutorials/extending/chapter2-methods/piechart.h
index bfcbd80ab1..38f5c0553f 100644
--- a/examples/declarative/tutorials/extending/chapter2-methods/piechart.h
+++ b/examples/declarative/tutorials/extending/chapter2-methods/piechart.h
@@ -40,11 +40,11 @@
#ifndef PIECHART_H
#define PIECHART_H
-#include <QDeclarativeItem>
+#include <QtDeclarative/QSGPaintedItem>
#include <QColor>
//![0]
-class PieChart : public QDeclarativeItem
+class PieChart : public QSGPaintedItem
{
//![0]
Q_OBJECT
@@ -55,7 +55,7 @@ class PieChart : public QDeclarativeItem
public:
//![1]
- PieChart(QDeclarativeItem *parent = 0);
+ PieChart(QSGItem *parent = 0);
QString name() const;
void setName(const QString &name);
@@ -63,7 +63,7 @@ public:
QColor color() const;
void setColor(const QColor &color);
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+ void paint(QPainter *painter);
//![2]
Q_INVOKABLE void clearChart();