From 0ada2e51c628ae9f280763f453b5889bc76b1325 Mon Sep 17 00:00:00 2001 From: fourtf Date: Mon, 2 Sep 2019 19:14:19 +0200 Subject: [PATCH] fixed spacing --- src/widgets/dialogs/SettingsDialog.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/widgets/dialogs/SettingsDialog.cpp b/src/widgets/dialogs/SettingsDialog.cpp index dad738b2e..5ed84b212 100644 --- a/src/widgets/dialogs/SettingsDialog.cpp +++ b/src/widgets/dialogs/SettingsDialog.cpp @@ -49,9 +49,10 @@ void SettingsDialog::initUi() LayoutCreator layoutCreator(this); // tab pages - layoutCreator.setLayoutType() - .withoutSpacing() - .emplace() + auto outerBox = layoutCreator.setLayoutType(); + outerBox->setSpacing(12); + + outerBox.emplace() .assign(&this->ui_.tabContainerContainer) .emplace() .withoutMargin() @@ -59,8 +60,6 @@ void SettingsDialog::initUi() this->ui_.tabContainerContainer->layout()->setContentsMargins(8, 8, 0, 39); - this->layout()->setSpacing(0); - // right side layout auto right = layoutCreator.emplace().withoutMargin().withoutSpacing(); @@ -125,11 +124,16 @@ void SettingsDialog::initUi() auto searchButton = header.emplace