This commit is contained in:
Sergio Martins
2020-04-04 16:35:13 +01:00
parent 5bd9a44324
commit b455ecae74
4 changed files with 28 additions and 31 deletions

View File

@@ -170,7 +170,7 @@ void MultiSplitterLayout::addWidget(QWidgetOrQuick *w, Location location, Frame
if (!relativeTo)
relativeTo = m_rootItem;
auto newItem = new Item();
auto newItem = new Item(multiSplitter());
newItem->setFrame(w);
w->setParent(multiSplitter());
relativeTo->insertItem(newItem, Layouting::Location(location));