diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-05-04 05:13:59 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-05-04 05:13:59 (GMT) |
commit | a5aadcea4c12c7926bf3b4d218ce476723cd7e10 (patch) | |
tree | 8eb1a23c5b1c824701e31b4ce7b556a4d1c63f9a /src/declarative/graphicsitems/qdeclarativepainteditem_p.h | |
parent | 1e3a6ac738b54c4ea3652b9f6ede665a1fafc72c (diff) | |
download | Qt-a5aadcea4c12c7926bf3b4d218ce476723cd7e10.zip Qt-a5aadcea4c12c7926bf3b4d218ce476723cd7e10.tar.gz Qt-a5aadcea4c12c7926bf3b4d218ce476723cd7e10.tar.bz2 |
Optimization for QDeclarativePaintedItem.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepainteditem_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepainteditem_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepainteditem_p.h b/src/declarative/graphicsitems/qdeclarativepainteditem_p.h index cc616af..8d08ba2 100644 --- a/src/declarative/graphicsitems/qdeclarativepainteditem_p.h +++ b/src/declarative/graphicsitems/qdeclarativepainteditem_p.h @@ -87,6 +87,10 @@ protected: QDeclarativePaintedItem(QDeclarativePaintedItemPrivate &dd, QDeclarativeItem *parent); virtual void drawContents(QPainter *p, const QRect &) = 0; + virtual void geometryChanged(const QRectF &newGeometry, + const QRectF &oldGeometry); + virtual QVariant itemChange(GraphicsItemChange change, + const QVariant &value); void setCacheFrozen(bool); @@ -100,7 +104,6 @@ protected Q_SLOTS: void clearCache(); private: - void init(); Q_DISABLE_COPY(QDeclarativePaintedItem) Q_DECLARE_PRIVATE_D(QGraphicsItem::d_ptr.data(), QDeclarativePaintedItem) }; |