forked from qt-creator/qt-creator
ProjectExplorer: Simplify KitAspect::addToLayoutWithLabel()
The parent widget was not used anymore. Change-Id: I57bb024b770c01efc68bb722623bcc7fb565cfeb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -651,13 +651,13 @@ void CMakeBuildSettingsWidget::kitCMakeConfiguration()
|
||||
Layouting::Grid grid;
|
||||
KitAspect *widget = CMakeKitAspect::createKitAspect(m_buildConfig->kit());
|
||||
widget->setParent(dialog);
|
||||
widget->addToLayoutWithLabel(grid, dialog);
|
||||
widget->addToLayoutWithLabel(grid);
|
||||
widget = CMakeGeneratorKitAspect::createKitAspect(m_buildConfig->kit());
|
||||
widget->setParent(dialog);
|
||||
widget->addToLayoutWithLabel(grid, dialog);
|
||||
widget->addToLayoutWithLabel(grid);
|
||||
widget = CMakeConfigurationKitAspect::createKitAspect(m_buildConfig->kit());
|
||||
widget->setParent(dialog);
|
||||
widget->addToLayoutWithLabel(grid, dialog);
|
||||
widget->addToLayoutWithLabel(grid);
|
||||
grid.attachTo(dialog);
|
||||
|
||||
auto layout = qobject_cast<QGridLayout *>(dialog->layout());
|
||||
|
||||
Reference in New Issue
Block a user