- const QString label = p->labeled_widget() ? QString() : p->name();
- layout->addRow(label, p->get_widget(layout->parentWidget(),
- auto_commit));
+
+ QWidget *const widget = p->get_widget(layout->parentWidget(),
+ auto_commit);
+ if (p->labeled_widget())
+ layout->addRow(widget);
+ else
+ layout->addRow(p->name(), widget);