summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout.h
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-08-19 13:47:18 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-08-19 13:47:18 (GMT)
commit784bef39ca505e1e4a6f2ec6742183b7750b4f47 (patch)
treee1902a60a7732ffdf8d265a1320d7bf7d6e93251 /src/gui/graphicsview/qgraphicsanchorlayout.h
parent14c6433781fb946aab6e7f77fd190469e5fcfb94 (diff)
downloadQt-784bef39ca505e1e4a6f2ec6742183b7750b4f47.zip
Qt-784bef39ca505e1e4a6f2ec6742183b7750b4f47.tar.gz
Qt-784bef39ca505e1e4a6f2ec6742183b7750b4f47.tar.bz2
Implement the functions we added in the API review:
Those are: * setAnchorSpacing() * anchorSpacing() * unsetAnchorSpacing() Autotests for the two last ones are missing though..
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.h')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.h b/src/gui/graphicsview/qgraphicsanchorlayout.h
index f2335a8..3de9ae5 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout.h
+++ b/src/gui/graphicsview/qgraphicsanchorlayout.h
@@ -65,10 +65,6 @@ public:
void addAnchor(QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge,
QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge);
- void setAnchorSpacing(const QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge,
- const QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge,
- qreal spacing);
-
void addCornerAnchors(QGraphicsLayoutItem *firstItem, Qt::Corner firstCorner,
QGraphicsLayoutItem *secondItem, Qt::Corner secondCorner);
@@ -81,8 +77,13 @@ public:
inline void addAllAnchors(QGraphicsLayoutItem *firstItem,
QGraphicsLayoutItem *secondItem);
+ void setAnchorSpacing(const QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge,
+ const QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge,
+ qreal spacing);
+
qreal anchorSpacing(const QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge,
const QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge) const;
+
void unsetAnchorSpacing(const QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge,
const QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge);