diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-29 05:30:28 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-29 06:48:50 (GMT) |
commit | a23977d78827ecf464f8f0aef96f7a9cb2abacd4 (patch) | |
tree | e28a8647e35df349b85d256bda12f65909997347 /src/gui/graphicsview/qgraphicsitem_p.h | |
parent | a79b31aba0405b0a24e210a2479d4b1df729c608 (diff) | |
download | Qt-a23977d78827ecf464f8f0aef96f7a9cb2abacd4.zip Qt-a23977d78827ecf464f8f0aef96f7a9cb2abacd4.tar.gz Qt-a23977d78827ecf464f8f0aef96f7a9cb2abacd4.tar.bz2 |
QGraphicsEffect optimizations for pixmap based items.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem_p.h b/src/gui/graphicsview/qgraphicsitem_p.h index 8a2dae9..ff1ca09 100644 --- a/src/gui/graphicsview/qgraphicsitem_p.h +++ b/src/gui/graphicsview/qgraphicsitem_p.h @@ -546,6 +546,12 @@ public: inline void update() { item->update(); } + inline bool isPixmap() const + { + return (item->type() == QGraphicsPixmapItem::Type); + //|| (item->d_ptr->isObject && qobject_cast<QFxImage *>(q_func())); + } + inline const QStyleOption *styleOption() const { return info ? info->option : 0; } |