summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/controls/TabView.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml
index cd8a023aa..bee7b3eb9 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