diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-08-17 08:41:18 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-08-17 08:41:18 (GMT) |
commit | 45305b592b13040d249dd672b2ab3520b827d135 (patch) | |
tree | 844d017c5cc432639091b2ed88768b5e2a8cf8f8 /src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | |
parent | 22e7ee32913484e25ae7bc61083f6a28bfaecfe9 (diff) | |
download | Qt-45305b592b13040d249dd672b2ab3520b827d135.zip Qt-45305b592b13040d249dd672b2ab3520b827d135.tar.gz Qt-45305b592b13040d249dd672b2ab3520b827d135.tar.bz2 |
Change the member QGALPrivate::spacing to QGALPrivate::spacings.
This was done to avoid any potential shadowing problems (we already use
the variable name 'spacing' several places)
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout_p.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp index d7bee19..0e35566 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp @@ -226,7 +226,7 @@ QGraphicsAnchorLayoutPrivate::QGraphicsAnchorLayoutPrivate() : calculateGraphCacheDirty(1) { for (int i = 0; i < NOrientations; ++i) { - spacing[i] = -1; + spacings[i] = -1; graphSimplified[i] = false; } } @@ -1179,7 +1179,7 @@ void QGraphicsAnchorLayoutPrivate::correctEdgeDirection(QGraphicsLayoutItem *&fi qreal QGraphicsAnchorLayoutPrivate::effectiveSpacing(Orientation orientation) const { Q_Q(const QGraphicsAnchorLayout); - qreal s = spacing[orientation]; + qreal s = spacings[orientation]; if (s < 0) { QGraphicsLayoutItem *parent = q->parentLayoutItem(); while (parent && parent->isLayout()) { |