diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-04 08:04:37 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-04 08:05:30 -0800 |
commit | f7b3c8b49687e7d8ae44f226054ca046f8489f7c (patch) | |
tree | a2bb05a87ac50d827fb1a11209c26fa3b560c12c | |
parent | 87d67157a3a0cd7211c897a43f45d570953937c0 (diff) | |
download | subsurface-f7b3c8b49687e7d8ae44f226054ca046f8489f7c.tar.gz |
The margin between toolbar and profile looked strange
Especially on Mac where there is already a lot of padding around the
action buttons.
Also made the spelling of the zeroMargins variable more consistent.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/mainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index c3b8281f7..2ae9b74f9 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -147,7 +147,7 @@ MainWindow::MainWindow() : QMainWindow(), // and now for some layout hackery // this gets us consistent margins everywhere and a much more balanced look QMargins margins(5, 5, 5, 5); - QMargins zeroMargin(0, 0, 0, 0); + QMargins zeroMargins(0, 0, 0, 0); QList<QString> noMarginList; noMarginList << "notesAndSocialNetworksLayout" << "mainTabOuterLayout" << @@ -164,12 +164,15 @@ MainWindow::MainWindow() : QMainWindow(), // this allows us to exclude specific layouts where the one size fits all // doesn't fit if (noMarginList.contains(layout->objectName())) - layout->setContentsMargins(zeroMargin); + layout->setContentsMargins(zeroMargins); else layout->setContentsMargins(margins); } margins = QMargins(0, 5, 5, 5); ui.profileInnerLayout->setContentsMargins(margins); + ui.profileInnerLayout->setSpacing(0); + toolBar->setContentsMargins(zeroMargins); + updateManager = new UpdateManager(this); } |