From 9b682c12c443f799f5e38cf0a76acfc3754e9e56 Mon Sep 17 00:00:00 2001 From: Nikita Krupenko Date: Sun, 15 May 2016 04:48:29 +0300 Subject: StackView: reset size of the content without explicit one on pop() This allows for item to be properly risezed by StackView when it'd be pushed onto stack again. Task-number: QTBUG-53067 Change-Id: I911026022a987ed5632ae5411d63221d743a6aca Reviewed-by: J-P Nurmi --- src/quicktemplates2/qquickstackview_p.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/quicktemplates2/qquickstackview_p.cpp') diff --git a/src/quicktemplates2/qquickstackview_p.cpp b/src/quicktemplates2/qquickstackview_p.cpp index d91c229d..ca2f5661 100644 --- a/src/quicktemplates2/qquickstackview_p.cpp +++ b/src/quicktemplates2/qquickstackview_p.cpp @@ -91,6 +91,10 @@ QQuickStackElement::~QQuickStackElement() item = nullptr; } else { item->setVisible(false); + if (!widthValid) + item->resetWidth(); + if (!heightValid) + item->resetHeight(); if (item->parentItem() != originalParent) { item->setParentItem(originalParent); } else { -- cgit v1.2.3