aboutsummaryrefslogtreecommitdiffstats
path: root/src/controls
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-09-14 12:57:42 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-09-16 13:00:06 +0000
commitf00c61126e7337bc9da88eefd47b689240fe39f5 (patch)
treea7e294cfe9ec1636c3bc1a0c9ea66b7582c69b02 /src/controls
parentd833c9224984ad408ca4074cbe147a39dabc8277 (diff)
SwipeView: add index, view and isCurrentItem attached properties
Task-number: QTBUG-48052 Change-Id: I0d6d27cc352d999d8071b979349f2364f0edf74d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls')
-rw-r--r--src/controls/qquickcontainer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/qquickcontainer.cpp b/src/controls/qquickcontainer.cpp
index 20b900a2..76a4e192 100644
--- a/src/controls/qquickcontainer.cpp
+++ b/src/controls/qquickcontainer.cpp
@@ -95,6 +95,7 @@ void QQuickContainerPrivate::moveItem(int from, int to)
void QQuickContainerPrivate::removeItem(int index, QQuickItem *item)
{
QQuickItemPrivate::get(item)->removeItemChangeListener(this, QQuickItemPrivate::Destroyed | QQuickItemPrivate::Parent);
+ item->setParentItem(Q_NULLPTR);
contentData.removeOne(item);
contentModel->remove(index);
}