forked from qt-creator/qt-creator
ProjectExplorer: Make LayoutBuilder aware of aspects
Change-Id: I3091808309904eeadf5001a68438a9b501dd9fc7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -135,9 +135,13 @@ QLayout *LayoutBuilder::layout() const
|
||||
|
||||
LayoutBuilder &LayoutBuilder::addItem(LayoutItem item)
|
||||
{
|
||||
if (item.widget && !item.widget->parent())
|
||||
item.widget->setParent(m_layout->parentWidget());
|
||||
m_pendingItems.append(item);
|
||||
if (item.aspect) {
|
||||
item.aspect->addToLayout(*this);
|
||||
} else {
|
||||
if (item.widget && !item.widget->parent())
|
||||
item.widget->setParent(m_layout->parentWidget());
|
||||
m_pendingItems.append(item);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user