diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-16 16:34:34 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-16 16:57:29 +0000 |
commit | 9a65b10e827b9bb09911feb9bd06ed10312463fc (patch) | |
tree | 722c817efff54946d77d12e0572441525aca7aac /src/templates/qquickstackview.cpp | |
parent | 235bcc4bc6a24e5e0b79359e76ef28fb5b77f62b (diff) |
Fix StackView resizing
Change-Id: Ib09996a9f12b669ae10fb7197f1e5b443540f7b0
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickstackview.cpp')
-rw-r--r-- | src/templates/qquickstackview.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/templates/qquickstackview.cpp b/src/templates/qquickstackview.cpp index 2dcae1a1..8ce04b30 100644 --- a/src/templates/qquickstackview.cpp +++ b/src/templates/qquickstackview.cpp @@ -870,15 +870,10 @@ void QQuickStackView::geometryChanged(const QRectF &newGeometry, const QRectF &o Q_D(QQuickStackView); foreach (QQuickStackElement *element, d->elements) { if (element->item) { - QQuickItemPrivate *p = QQuickItemPrivate::get(element->item); - if (!p->widthValid) { + if (!element->widthValid) element->item->setWidth(newGeometry.width()); - p->widthValid = false; - } - if (!p->heightValid) { + if (!element->heightValid) element->item->setHeight(newGeometry.height()); - p->heightValid = false; - } } } } |