Skip to content

Commit 594edc4

Browse files
committed
Kit aspects: Make sure to always use createSubWidget()
... to create sub-widgets. Otherwise, parts of the aspect will stay visible when it gets hidden. Change-Id: I967ef745348c10f7b5e78d726efcdb9c6005f887 Reviewed-by: hjk <[email protected]>
1 parent 248cd3c commit 594edc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/plugins/projectexplorer/devicesupport/devicekitaspects.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ class DeviceKitAspectImpl final : public KitAspect
9999
{
100100
if (const QList<KitAspect *> embedded = aspectsToEmbed(); !embedded.isEmpty()) {
101101
Layouting::Layout box(new QHBoxLayout);
102-
box.addItem(Tr::tr("Type:"));
102+
box.addItem(createSubWidget<QLabel>(Tr::tr("Type:")));
103103
embedded.first()->addToInnerLayout(box);
104-
box.addItem(Tr::tr("Device:"));
104+
box.addItem(createSubWidget<QLabel>(Tr::tr("Device:")));
105105
KitAspect::addToInnerLayout(box);
106106
QSizePolicy p = comboBoxes().first()->sizePolicy();
107107
p.setHorizontalStretch(1);

src/plugins/qtsupport/qtkitaspect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class QtKitAspectImpl final : public KitAspect
9595
QSizePolicy p = comboBoxes().first()->sizePolicy();
9696
p.setHorizontalStretch(2);
9797
comboBoxes().first()->setSizePolicy(p);
98-
box.addItem(Tr::tr("Mkspec:"));
98+
box.addItem(createSubWidget<QLabel>(Tr::tr("Mkspec:")));
9999
embedded.first()->addToInnerLayout(box);
100100
layout.addItem(box);
101101
} else {

0 commit comments

Comments
 (0)