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 | |
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')
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout.cpp | 4 | ||||
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | 4 | ||||
-rw-r--r-- | src/gui/graphicsview/qgraphicsanchorlayout_p.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp index 9846988..98e4b32 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp @@ -207,9 +207,9 @@ void QGraphicsAnchorLayout::setSpacing(qreal spacing, Qt::Orientations orientati { Q_D(QGraphicsAnchorLayout); if (orientations & Qt::Horizontal) - d->spacing[0] = spacing; + d->spacings[0] = spacing; if (orientations & Qt::Vertical) - d->spacing[1] = spacing; + d->spacings[1] = spacing; } qreal QGraphicsAnchorLayout::spacing(Qt::Orientation orientation) const 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()) { diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h index ce4eaf7..7b210cd 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h @@ -390,7 +390,7 @@ public: GraphPath path); void solvePreferred(QList<QSimplexConstraint *> constraints); - qreal spacing[NOrientations]; + qreal spacings[NOrientations]; // Size hints from simplex engine qreal sizeHints[2][3]; |