From c9aa27d0ae9f3492c19da1e4c75178b8fcb764be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Arve=20S=C3=A6ther?= Date: Mon, 17 Aug 2009 13:48:01 +0200 Subject: Add missing call to invalidate() in all functions that modify the spacing. --- src/gui/graphicsview/qgraphicsanchorlayout.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp index b3dac18..ff4706d 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp @@ -220,6 +220,7 @@ void QGraphicsAnchorLayout::setHorizontalSpacing(qreal spacing) { Q_D(QGraphicsAnchorLayout); d->spacings[0] = spacing; + invalidate(); } /*! @@ -231,6 +232,7 @@ void QGraphicsAnchorLayout::setVerticalSpacing(qreal spacing) { Q_D(QGraphicsAnchorLayout); d->spacings[1] = spacing; + invalidate(); } /*! @@ -244,6 +246,7 @@ void QGraphicsAnchorLayout::setSpacing(qreal spacing) { Q_D(QGraphicsAnchorLayout); d->spacings[0] = d->spacings[1] = spacing; + invalidate(); } /*! -- cgit v0.12