summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout_p.h
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-29 07:46:06 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-29 11:01:45 (GMT)
commitcdfcdbacc543bc0b67e615adf7bb8d885285b425 (patch)
treebc80d175ba08948fbb3e46ea957608b827e543bd /src/gui/graphicsview/qgraphicsanchorlayout_p.h
parent02989fc21d15dcbf5ceb6a55fc124b5eaf191169 (diff)
downloadQt-cdfcdbacc543bc0b67e615adf7bb8d885285b425.zip
Qt-cdfcdbacc543bc0b67e615adf7bb8d885285b425.tar.gz
Qt-cdfcdbacc543bc0b67e615adf7bb8d885285b425.tar.bz2
After some discussion we decided to remove hasConflicts() from the API.
hasConflicts() does only make sense for a tool/editor of the layout, and how this function would help the tool is only guesswork at the moment. We keep the private API though, in order to let the autotests we inherited from Orbit pass.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
index 4e1bcd4..c86bfa3 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h
@@ -343,7 +343,7 @@ public:
QGraphicsAnchorLayout private methods and attributes.
*/
-class QGraphicsAnchorLayoutPrivate : public QGraphicsLayoutPrivate
+class Q_AUTOTEST_EXPORT QGraphicsAnchorLayoutPrivate : public QGraphicsLayoutPrivate
{
Q_DECLARE_PUBLIC(QGraphicsAnchorLayout)
@@ -370,6 +370,11 @@ public:
QGraphicsAnchorLayoutPrivate();
+ static QGraphicsAnchorLayoutPrivate *get(QGraphicsAnchorLayout *q)
+ {
+ return q ? q->d_func() : 0;
+ }
+
static Qt::AnchorPoint oppositeEdge(
Qt::AnchorPoint edge);