diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2013-09-18 13:43:59 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-18 13:59:19 +0200 |
commit | 04e000d2b1719696581bb4ae6ec21e39236ef38c (patch) | |
tree | a17a76085162fd440b6a5680acff1787f90cae19 | |
parent | 4eb3400843cafcedffa47fb8a272704bca4e9473 (diff) | |
download | qtquickcontrols-04e000d2b1719696581bb4ae6ec21e39236ef38c.tar.gz |
Fix Tab ownership issue that has been blocking stable->dev merge
Change-Id: Ifcae96687bcc54486d7f16b1e1002e54394b914d
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-rw-r--r-- | src/controls/TabView.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml index cd8a023a..bee7b3eb 100644 --- a/src/controls/TabView.qml +++ b/src/controls/TabView.qml @@ -95,7 +95,9 @@ FocusScope { Returns the newly added tab. */ function insertTab(index, title, component) { - var tab = tabcomp.createObject() + // 'loader' parent is a pending workaround while waiting for: + // https://codereview.qt-project.org/#change,65788 + var tab = tabcomp.createObject(loader) tab.sourceComponent = component tab.title = title // insert at appropriate index first, then set the parent to |