forked from qt-creator/qt-creator
Utils: Tiny simplification in LayoutBuilder::Group implementation
Originally we needed the real type of the widget for a while. Not anymore. Change-Id: Ida7e3eb4b091baee90d510c5f6ec05bbcedfc11f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -480,11 +480,10 @@ Group::Group(const LayoutBuilder &innerLayout)
|
||||
|
||||
Group::Group(const LayoutBuilder::Setters &setters, const LayoutBuilder &innerLayout)
|
||||
{
|
||||
auto box = new QGroupBox;
|
||||
innerLayout.attachTo(box, true);
|
||||
widget = new QGroupBox;
|
||||
innerLayout.attachTo(widget, true);
|
||||
for (const LayoutBuilder::Setter &func : setters)
|
||||
func(box);
|
||||
widget = box;
|
||||
func(widget);
|
||||
}
|
||||
|
||||
LayoutBuilder::Setter Title(const QString &title, BoolAspect *checker)
|
||||
|
Reference in New Issue
Block a user