diff options
author | Christian Kandeler <[email protected]> | 2024-11-14 16:21:56 +0100 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2024-11-14 16:16:39 +0000 |
commit | 295e5bb46e1d77e40182864465221942c9b4e6e6 (patch) | |
tree | 0743b772e7d50fb243eca380797f5c77fb37ae5b /src | |
parent | e13adc92b2fd495c8151e5502f011fded36a5ff5 (diff) |
ProjectExplorer: Fix RunDeviceKitAspect layout again
Commit 8eb1d52e1c2b92ba5f68d3ae5685370dfcd5eeba fixed the target
selector, but broke the kit settings page.
Change-Id: I6364f4ac3b3a201df1e376d863bcd16340e2b14e
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/projectexplorer/devicesupport/devicekitaspects.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/devicekitaspects.cpp b/src/plugins/projectexplorer/devicesupport/devicekitaspects.cpp index 22f1e918928..1cfc074cfb5 100644 --- a/src/plugins/projectexplorer/devicesupport/devicekitaspects.cpp +++ b/src/plugins/projectexplorer/devicesupport/devicekitaspects.cpp @@ -188,10 +188,8 @@ private: void addToInnerLayout(Layouting::Layout &parentItem) override { - Layouting::Layout &layout = parentItem; if (const QList<KitAspect *> embedded = aspectsToEmbed(); !embedded.isEmpty()) { - layout = Layouting::Layout(new QHBoxLayout); - parentItem.addItem(layout); + Layouting::Layout layout(new QHBoxLayout); layout.addItem(Tr::tr("Type:")); embedded.first()->addToInnerLayout(layout); layout.addItem(Tr::tr("Device:")); @@ -199,8 +197,9 @@ private: QSizePolicy p = comboBoxes().first()->sizePolicy(); p.setHorizontalStretch(1); comboBoxes().first()->setSizePolicy(p); + parentItem.addItem(layout); } else { - KitAspect::addToInnerLayout(layout); + KitAspect::addToInnerLayout(parentItem); } } }; |