diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-08-17 09:45:33 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-08-17 09:45:33 (GMT) |
commit | a00fe5c3890ba3b80ff37657d988fb52502f6f78 (patch) | |
tree | f7bc077f5758c08acf6c7ce48a4eae343d9e2686 /src/gui/graphicsview/qgraphicsanchorlayout.h | |
parent | 45305b592b13040d249dd672b2ab3520b827d135 (diff) | |
download | Qt-a00fe5c3890ba3b80ff37657d988fb52502f6f78.zip Qt-a00fe5c3890ba3b80ff37657d988fb52502f6f78.tar.gz Qt-a00fe5c3890ba3b80ff37657d988fb52502f6f78.tar.bz2 |
Small change in the "spacing API".
In order to be consistent with QGraphicsGridLayout(QGGL), we remove the
void setSpacing(Qt::Orientations );
qreal spacing(Qt::Orientations );
in favor to
void setHorizontalSpacing(qreal spacing);
void setVerticalSpacing(qreal spacing);
void setSpacing(qreal spacing);
qreal horizontalSpacing() const;
qreal verticalSpacing() const;
The API for setting and retrieving spacings should now be the same as
in QGGL.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.h b/src/gui/graphicsview/qgraphicsanchorlayout.h index 249996e..8010b31 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout.h @@ -103,8 +103,11 @@ public: inline void anchorGeometry(QGraphicsLayoutItem *item, QGraphicsLayoutItem *relativeTo, qreal spacing); - void setSpacing(qreal spacing, Qt::Orientations orientations = Qt::Horizontal|Qt::Vertical); - qreal spacing(Qt::Orientation) const; + void setHorizontalSpacing(qreal spacing); + void setVerticalSpacing(qreal spacing); + void setSpacing(qreal spacing); + qreal horizontalSpacing() const; + qreal verticalSpacing() const; void removeAt(int index); void setGeometry(const QRectF &rect); |