aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickstackview_p.cpp
diff options
context:
space:
mode:
authorNikita Krupenko <krnekit@gmail.com>2016-05-15 04:48:29 +0300
committerNikita Krupenko <krnekit@gmail.com>2016-05-18 14:00:29 +0000
commit9b682c12c443f799f5e38cf0a76acfc3754e9e56 (patch)
tree6bb1f4c73b4a77c1dea84fa1ec8fa1550a7d00f5 /src/quicktemplates2/qquickstackview_p.cpp
parent8f08885f8557099c2a37d4f3579e73f900a43cad (diff)
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 <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickstackview_p.cpp')
-rw-r--r--src/quicktemplates2/qquickstackview_p.cpp4
1 files changed, 4 insertions, 0 deletions
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 {