summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout.cpp
diff options
context:
space:
mode:
authorArtur Duque de Souza <artur.souza@openbossa.org>2009-08-12 14:33:14 (GMT)
committerArtur Duque de Souza <artur.souza@openbossa.org>2009-08-12 14:33:46 (GMT)
commitae67fcb0538c0f47c77eef0ed39955e33671343e (patch)
treeebf3f0cb430a0222425b9f36a0e97df7fe3d4442 /src/gui/graphicsview/qgraphicsanchorlayout.cpp
parent489685ef0724c852d964504853b86be39bddc7de (diff)
downloadQt-ae67fcb0538c0f47c77eef0ed39955e33671343e.zip
Qt-ae67fcb0538c0f47c77eef0ed39955e33671343e.tar.gz
Qt-ae67fcb0538c0f47c77eef0ed39955e33671343e.tar.bz2
Update Anchor Layout API
More user friendly API for anchor layouts. Changed method names and also provided more methods to receive spacing. Signed-off-by: Artur Duque de Souza <artur.souza@openbossa.org> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
index 6360e75..902f0b2 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
@@ -131,10 +131,10 @@ void QGraphicsAnchorLayout::anchor(QGraphicsLayoutItem *firstItem,
* \a firstItem and \a secondItem are automatically added to the layout if they are not part
* of the layout. This means that count() can increase with up to 2.
*/
-void QGraphicsAnchorLayout::anchor(QGraphicsLayoutItem *firstItem,
- Qt::Corner firstCorner,
- QGraphicsLayoutItem *secondItem,
- Qt::Corner secondCorner)
+void QGraphicsAnchorLayout::anchorCorner(QGraphicsLayoutItem *firstItem,
+ Qt::Corner firstCorner,
+ QGraphicsLayoutItem *secondItem,
+ Qt::Corner secondCorner)
{
Q_D(QGraphicsAnchorLayout);
@@ -157,10 +157,10 @@ void QGraphicsAnchorLayout::anchor(QGraphicsLayoutItem *firstItem,
* By calling this function the caller can specify the magnitude of the anchor with \a spacing.
*
*/
-void QGraphicsAnchorLayout::anchor(QGraphicsLayoutItem *firstItem,
- Qt::Corner firstCorner,
- QGraphicsLayoutItem *secondItem,
- Qt::Corner secondCorner, qreal spacing)
+void QGraphicsAnchorLayout::anchorCorner(QGraphicsLayoutItem *firstItem,
+ Qt::Corner firstCorner,
+ QGraphicsLayoutItem *secondItem,
+ Qt::Corner secondCorner, qreal spacing)
{
Q_D(QGraphicsAnchorLayout);