summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-08-02 13:32:12 +0200
committerMontel Laurent <[email protected]>2016-08-02 13:32:12 +0200
commita7d283fab32f186f80c8e2228e26b0726237e36c (patch)
tree3c8b703f10e68b1884aade563fcb98ae436662fd
parent73c9bd3e967d4bf392d4518c952cfbbcebf5977b (diff)
Fix double margin
-rw-r--r--resources/imap/subscriptiondialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/imap/subscriptiondialog.cpp b/resources/imap/subscriptiondialog.cpp
index 788e8b9..5ebd628 100644
--- a/resources/imap/subscriptiondialog.cpp
+++ b/resources/imap/subscriptiondialog.cpp
@@ -56,10 +56,10 @@ SubscriptionDialog::SubscriptionDialog(QWidget *parent, SubscriptionDialog::Subs
m_filter(new SubscriptionFilterProxyModel(this)),
m_model(new QStandardItemModel(this))
{
+ QVBoxLayout *topLayout = new QVBoxLayout(this);
setModal(true);
+
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
- QVBoxLayout *topLayout = new QVBoxLayout;
- setLayout(topLayout);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
@@ -74,6 +74,7 @@ SubscriptionDialog::SubscriptionDialog(QWidget *parent, SubscriptionDialog::Subs
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
+ mainLayout->setMargin(0);
mainWidget->setLayout(mainLayout);
topLayout->addWidget(mainWidget);
topLayout->addWidget(buttonBox);