summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-07-11 08:29:57 +0200
committerMontel Laurent <[email protected]>2016-07-11 08:29:57 +0200
commit89d356e3ed5af4fc86e1a554e4811b2e8fd35aea (patch)
tree2c3f264c072c02806ef3ac38da7442a794ecaa93
parented4fdd8bb765747e12b0e22b9e9a135ea64c700a (diff)
Fix margin + layout
-rw-r--r--src/ksieveui/autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ksieveui/autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp b/src/ksieveui/autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp
index 01dc368..f87b1e6 100644
--- a/src/ksieveui/autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp
+++ b/src/ksieveui/autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp
@@ -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();