Commit 89d356e3 authored by Laurent Montel's avatar Laurent Montel 😁

Fix margin + layout

parent ed4fdd8b
......@@ -39,6 +39,7 @@ SelectHeadersDialog::SelectHeadersDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Headers"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
......@@ -48,9 +49,11 @@ SelectHeadersDialog::SelectHeadersDialog(QWidget *parent)
connect(buttonBox, &QDialogButtonBox::accepted, this, &SelectHeadersDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &SelectHeadersDialog::reject);
okButton->setFocus();
QWidget *w = new QWidget;
QVBoxLayout *lay = new QVBoxLayout;
w->setLayout(lay);
lay->setMargin(0);
mainLayout->addLayout(lay);
mListWidget = new SelectHeadersWidget;
lay->addWidget(mListWidget);
......@@ -76,7 +79,6 @@ SelectHeadersDialog::SelectHeadersDialog(QWidget *parent)
lay->addLayout(hbox);
mainLayout->addWidget(w);
mainLayout->addWidget(buttonBox);
readConfig();
......
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