summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem_p.h
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-07-28 09:34:20 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-07-28 09:34:20 (GMT)
commita20f8dcbeafa34b50ef69d1c5db0f17b09731d2a (patch)
tree510973b95c107fd08f42423fd04a75e3da0bb5d9 /src/gui/graphicsview/qgraphicsitem_p.h
parent3643028959f0b38350e57e60ba4000435b75e592 (diff)
downloadQt-a20f8dcbeafa34b50ef69d1c5db0f17b09731d2a.zip
Qt-a20f8dcbeafa34b50ef69d1c5db0f17b09731d2a.tar.gz
Qt-a20f8dcbeafa34b50ef69d1c5db0f17b09731d2a.tar.bz2
Compile fixes after latest merge of 4.6.
The ususal suspects like QScopedPointer fixes, but also some changes since the introduction of qcore_unix.*
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsitem_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem_p.h b/src/gui/graphicsview/qgraphicsitem_p.h
index 3d9f8a6..c395cd6 100644
--- a/src/gui/graphicsview/qgraphicsitem_p.h
+++ b/src/gui/graphicsview/qgraphicsitem_p.h
@@ -171,11 +171,11 @@ public:
static const QGraphicsItemPrivate *get(const QGraphicsItem *item)
{
- return item->d_ptr;
+ return item->d_ptr.data();
}
static QGraphicsItemPrivate *get(QGraphicsItem *item)
{
- return item->d_ptr;
+ return item->d_ptr.data();
}
void updateAncestorFlag(QGraphicsItem::GraphicsItemFlag childFlag,
@@ -514,8 +514,8 @@ struct QGraphicsItemPrivate::TransformData {
inline bool qt_closestLeaf(const QGraphicsItem *item1, const QGraphicsItem *item2)
{
// Return true if sibling item1 is on top of item2.
- const QGraphicsItemPrivate *d1 = item1->d_ptr;
- const QGraphicsItemPrivate *d2 = item2->d_ptr;
+ const QGraphicsItemPrivate *d1 = item1->d_ptr.data();
+ const QGraphicsItemPrivate *d2 = item2->d_ptr.data();
bool f1 = d1->flags & QGraphicsItem::ItemStacksBehindParent;
bool f2 = d2->flags & QGraphicsItem::ItemStacksBehindParent;
if (f1 != f2)