diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-10-02 03:13:27 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-10-02 03:13:27 (GMT) |
commit | 6d06a9d19b4e0fc3ec2b7e32a014103c58e93ae0 (patch) | |
tree | 1e66dbe507d235b8e95538881b1ce16a14ffa06c /src/declarative/fx | |
parent | a4fc9805bd1dd8798ccb2918e4dbd3ed8b0ca2f9 (diff) | |
download | Qt-6d06a9d19b4e0fc3ec2b7e32a014103c58e93ae0.zip Qt-6d06a9d19b4e0fc3ec2b7e32a014103c58e93ae0.tar.gz Qt-6d06a9d19b4e0fc3ec2b7e32a014103c58e93ae0.tar.bz2 |
Try to restore stacking order when restoring from a ParentChange.
Diffstat (limited to 'src/declarative/fx')
-rw-r--r-- | src/declarative/fx/qfxitem.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxitem.h b/src/declarative/fx/qfxitem.h index b309cb3..30c522f 100644 --- a/src/declarative/fx/qfxitem.h +++ b/src/declarative/fx/qfxitem.h @@ -210,6 +210,13 @@ private: Q_DECLARE_PRIVATE_D(QGraphicsItem::d_ptr.data(), QFxItem) }; +template<typename T> + T qobject_cast(QGraphicsObject *o) +{ + QObject *obj = o; + return qobject_cast<T>(obj); +} + // ### move to QGO template<typename T> T qobject_cast(QGraphicsItem *item) |