diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-05-17 12:14:04 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-05-18 09:41:09 +0000 |
commit | 6a0f7831e16901a970c23b2f41fc38e905ca29f9 (patch) | |
tree | 2bcdad6234d1374f118f0845c1251d66607431d8 /src/quicktemplates2/qquickcontainer_p_p.h | |
parent | 82c5ea5a2fe9e3dc23242a01f03586746c2a4a09 (diff) |
Add QQuickContainer::itemMoved()
This allows the container implementations to easily update their
attached properties etc. when items are moved due to being directly
moveItem()'d or while being indirectly moved due to insertions or
removals.
This change will be extensively tested by tst_swipeview.qml and
tst_tabbar.qml when they start utilizing itemMoved().
Change-Id: If868d763478541b957b4a3d5da041e6cd095ea0b
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickcontainer_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickcontainer_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcontainer_p_p.h b/src/quicktemplates2/qquickcontainer_p_p.h index 38c6b3e4..cbc04f9a 100644 --- a/src/quicktemplates2/qquickcontainer_p_p.h +++ b/src/quicktemplates2/qquickcontainer_p_p.h @@ -66,7 +66,7 @@ public: QQuickItem *itemAt(int index) const; void insertItem(int index, QQuickItem *item); - void moveItem(int from, int to); + void moveItem(int from, int to, QQuickItem *item); void removeItem(int index, QQuickItem *item); void _q_currentIndexChanged(); |