diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2013-04-08 17:13:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-09 15:09:03 +0200 |
commit | 6a220dfc1a363d85f486d7de04834e501b60b67f (patch) | |
tree | 9fdf9491feede1939c833ddf70aac211e0b40b52 /src/layouts/qquicklinearlayout.cpp | |
parent | 80968e5e6ca6ce95fefe25721768ce4471a97c7a (diff) | |
download | qtquickcontrols-6a220dfc1a363d85f486d7de04834e501b60b67f.tar.gz |
Don't rearrange/recalculate the layout if it is hidden
Change-Id: I8d24afeef04003c3789eaa7bd136e3f2de0dcc6b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/layouts/qquicklinearlayout.cpp')
-rw-r--r-- | src/layouts/qquicklinearlayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layouts/qquicklinearlayout.cpp b/src/layouts/qquicklinearlayout.cpp index 635bb576..4fe50b4d 100644 --- a/src/layouts/qquicklinearlayout.cpp +++ b/src/layouts/qquicklinearlayout.cpp @@ -155,7 +155,7 @@ void QQuickGridLayoutBase::invalidate(QQuickItem *childItem) void QQuickGridLayoutBase::updateLayoutItems() { Q_D(QQuickGridLayoutBase); - if (!isComponentComplete()) + if (!isComponentComplete() || !isVisible()) return; quickLayoutDebug() << "QQuickGridLayoutBase::updateLayoutItems"; d->engine.deleteItems(); |