aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/projectexplorer/devicesupport/devicekitaspects.cpp7
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);
}
}
};