diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-05-29 12:45:35 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-05-29 12:45:35 (GMT) |
commit | 9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5 (patch) | |
tree | 593e1914bf75be9e7f015c54970def18ebbd6429 /src/gui/graphicsview/qgraphicsitem.h | |
parent | 23a92388505c54155855d2f49d3a9cf81de0e5ea (diff) | |
download | Qt-9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5.zip Qt-9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5.tar.gz Qt-9281f4c219cec2e6a1e24b43e1edd0feb0fcfce5.tar.bz2 |
First bunch of changes after an very first API review
This basically move some logic from the scene to the index base class.
Lot of work need to be done in order to benefits from the device
transform. The sorting needs to be move in the BSP tree.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.h b/src/gui/graphicsview/qgraphicsitem.h index cb86020..e244c13 100644 --- a/src/gui/graphicsview/qgraphicsitem.h +++ b/src/gui/graphicsview/qgraphicsitem.h @@ -409,6 +409,8 @@ protected: virtual void setExtension(Extension extension, const QVariant &variant); virtual QVariant extension(const QVariant &variant) const; + bool operator<(const QGraphicsItem *other) const; + protected: QGraphicsItem(QGraphicsItemPrivate &dd, QGraphicsItem *parent, QGraphicsScene *scene); @@ -430,6 +432,8 @@ private: friend class QGraphicsWidget; friend class QGraphicsWidgetPrivate; friend class QGraphicsProxyWidgetPrivate; + friend class QGraphicsSceneIndex; + friend class QGraphicsSceneIndexPrivate; friend class QGraphicsSceneBspTreeIndex; friend class ::tst_QGraphicsItem; friend bool qt_closestLeaf(const QGraphicsItem *, const QGraphicsItem *); |