mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
87d67157a3
commit
f7b3c8b496
1 changed files with 5 additions and 2 deletions
|
@ -147,7 +147,7 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
// and now for some layout hackery
|
// and now for some layout hackery
|
||||||
// this gets us consistent margins everywhere and a much more balanced look
|
// this gets us consistent margins everywhere and a much more balanced look
|
||||||
QMargins margins(5, 5, 5, 5);
|
QMargins margins(5, 5, 5, 5);
|
||||||
QMargins zeroMargin(0, 0, 0, 0);
|
QMargins zeroMargins(0, 0, 0, 0);
|
||||||
QList<QString> noMarginList;
|
QList<QString> noMarginList;
|
||||||
noMarginList << "notesAndSocialNetworksLayout" <<
|
noMarginList << "notesAndSocialNetworksLayout" <<
|
||||||
"mainTabOuterLayout" <<
|
"mainTabOuterLayout" <<
|
||||||
|
@ -164,12 +164,15 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
// this allows us to exclude specific layouts where the one size fits all
|
// this allows us to exclude specific layouts where the one size fits all
|
||||||
// doesn't fit
|
// doesn't fit
|
||||||
if (noMarginList.contains(layout->objectName()))
|
if (noMarginList.contains(layout->objectName()))
|
||||||
layout->setContentsMargins(zeroMargin);
|
layout->setContentsMargins(zeroMargins);
|
||||||
else
|
else
|
||||||
layout->setContentsMargins(margins);
|
layout->setContentsMargins(margins);
|
||||||
}
|
}
|
||||||
margins = QMargins(0, 5, 5, 5);
|
margins = QMargins(0, 5, 5, 5);
|
||||||
ui.profileInnerLayout->setContentsMargins(margins);
|
ui.profileInnerLayout->setContentsMargins(margins);
|
||||||
|
ui.profileInnerLayout->setSpacing(0);
|
||||||
|
toolBar->setContentsMargins(zeroMargins);
|
||||||
|
|
||||||
updateManager = new UpdateManager(this);
|
updateManager = new UpdateManager(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue