mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove all margins from mainwindow.ui file
And adjust them in code instead. This seems to look nice. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
36ba5d3382
commit
17195e44a5
2 changed files with 4 additions and 54 deletions
|
@ -141,6 +141,8 @@ MainWindow::MainWindow() : QMainWindow(),
|
|||
QMargins margins(5, 5, 5, 5);
|
||||
QList<QString> dontChange;
|
||||
dontChange << "notesAndSocialNetworksLayout" <<
|
||||
"mainTabOuterLayout" <<
|
||||
"ratingVisibilityWidgets" <<
|
||||
"profileInnerLayout";
|
||||
Q_FOREACH (QLayout *layout, findChildren<QLayout *>()) {
|
||||
// lots of internally used layouts by Qt have no names
|
||||
|
@ -155,6 +157,8 @@ MainWindow::MainWindow() : QMainWindow(),
|
|||
}
|
||||
margins = QMargins(0, 5, 5, 5);
|
||||
ui.profileInnerLayout->setContentsMargins(margins);
|
||||
margins = QMargins(5, 5, 0, 5);
|
||||
ui.profileOuterLayout->setContentsMargins(margins);
|
||||
|
||||
updateManager = new UpdateManager(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue