summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-02 17:23:54 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-02 22:24:50 -0800
commit17195e44a59cc96b60cd8ffdf367add4645b0629 (patch)
treeae91bcc507354fca4836cbd3766ce28ca95e8b28 /qt-ui/mainwindow.cpp
parent36ba5d3382e89f247b5bde2efd0aac4428c34d96 (diff)
downloadsubsurface-17195e44a59cc96b60cd8ffdf367add4645b0629.tar.gz
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>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 08b228d4a..500c0508a 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -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);
}