forked from qt-creator/qt-creator
ProjectExplorer: Re-organize KitAspect layouting related functions
Less obscure as it's fairly close to the standard pattern now. Change-Id: I4680465fbdb9fb6a458c18ef0534e4d8a4a31d1e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> 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);
|
||||
widget->addToLayout(grid);
|
||||
widget = CMakeGeneratorKitAspect::createKitAspect(m_buildConfig->kit());
|
||||
widget->setParent(dialog);
|
||||
widget->addToLayoutWithLabel(grid);
|
||||
widget->addToLayout(grid);
|
||||
widget = CMakeConfigurationKitAspect::createKitAspect(m_buildConfig->kit());
|
||||
widget->setParent(dialog);
|
||||
widget->addToLayoutWithLabel(grid);
|
||||
widget->addToLayout(grid);
|
||||
grid.attachTo(dialog);
|
||||
|
||||
auto layout = qobject_cast<QGridLayout *>(dialog->layout());
|
||||
|
||||
Reference in New Issue
Block a user