Commit 03d3db53 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

not necessary to use it as we already added parent to layout

parent 4a331111
Pipeline #178231 passed with stage
in 2 minutes and 17 seconds
......@@ -26,7 +26,6 @@ calculator::calculator(QWidget *parent)
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Close, this);
auto mainWidget = new QWidget(this);
auto mainLayout = new QVBoxLayout(this);
setLayout(mainLayout);
mainLayout->addWidget(mainWidget);
connect(buttonBox, &QDialogButtonBox::accepted, this, &calculator::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &calculator::reject);
......
Supports Markdown
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