summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout.cpp
diff options
context:
space:
mode:
authorJesus Sanchez-Palencia <jesus.palencia@openbossa.org>2009-05-28 20:20:36 (GMT)
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-07-22 18:04:00 (GMT)
commit2f002ef720412dc834daac46843d1439dc49680f (patch)
treee39f4892450004ace4f097be97b36ba1c2465677 /src/gui/graphicsview/qgraphicsanchorlayout.cpp
parent0b0fd15c04486ad098d93e2cbedc23497f3ec110 (diff)
downloadQt-2f002ef720412dc834daac46843d1439dc49680f.zip
Qt-2f002ef720412dc834daac46843d1439dc49680f.tar.gz
Qt-2f002ef720412dc834daac46843d1439dc49680f.tar.bz2
QGraphicsAnchorLayout: Making private class inherit from QGraphicsLayoutPrivate
Signed-off-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
index d737e36..d91b4ab 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
@@ -42,12 +42,10 @@
#include "qgraphicsanchorlayout_p.h"
QGraphicsAnchorLayout::QGraphicsAnchorLayout(QGraphicsLayoutItem *parent)
- : QGraphicsLayout(parent), d_ptr(new QGraphicsAnchorLayoutPrivate())
+ : QGraphicsLayout(*new QGraphicsAnchorLayoutPrivate(), parent)
{
- // ### REMOVE THAT
- d_ptr->q_ptr = this;
-
- d_ptr->createLayoutEdges();
+ Q_D(QGraphicsAnchorLayout);
+ d->createLayoutEdges();
}
QGraphicsAnchorLayout::~QGraphicsAnchorLayout()