diff options
Diffstat (limited to 'examples/declarative/painteditem/textballoons')
-rw-r--r-- | examples/declarative/painteditem/textballoons/textballoon.cpp | 4 | ||||
-rw-r--r-- | examples/declarative/painteditem/textballoons/textballoon.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/painteditem/textballoons/textballoon.cpp b/examples/declarative/painteditem/textballoons/textballoon.cpp index 185cea71fb..c90118ca65 100644 --- a/examples/declarative/painteditem/textballoons/textballoon.cpp +++ b/examples/declarative/painteditem/textballoons/textballoon.cpp @@ -42,8 +42,8 @@ #include "textballoon.h" //! [0] -TextBalloon::TextBalloon(QSGItem *parent) - : QSGPaintedItem(parent) +TextBalloon::TextBalloon(QQuickItem *parent) + : QQuickPaintedItem(parent) , rightAligned(false) { } diff --git a/examples/declarative/painteditem/textballoons/textballoon.h b/examples/declarative/painteditem/textballoons/textballoon.h index 272e5f51c1..064d20bd7e 100644 --- a/examples/declarative/painteditem/textballoons/textballoon.h +++ b/examples/declarative/painteditem/textballoons/textballoon.h @@ -45,13 +45,13 @@ #include <QtDeclarative> //! [0] -class TextBalloon : public QSGPaintedItem +class TextBalloon : public QQuickPaintedItem { Q_OBJECT Q_PROPERTY(bool rightAligned READ isRightAligned WRITE setRightAligned NOTIFY rightAlignedChanged) public: - TextBalloon(QSGItem *parent = 0); + TextBalloon(QQuickItem *parent = 0); void paint(QPainter *painter); bool isRightAligned(); |