Commit 5740a4bc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Assign parent directly

parent 1afecac7
......@@ -81,10 +81,9 @@ int Summary::summaryHeight() const
QWidget *Summary::createHeader(QWidget *parent, const QString &iconname, const QString &heading)
QWidget *box = new QWidget(parent);
QHBoxLayout *hbox = new QHBoxLayout;
QHBoxLayout *hbox = new QHBoxLayout(box);
hbox->setContentsMargins(0, 0, 0, 0);
QIcon icon = QIcon::fromTheme(iconname);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment