summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 898166328..cd85418a8 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -155,6 +155,13 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
box->setStyleSheet(gnomeCss);
}
}
+ // QLineEdit and QLabels should have minimal margin on the left and right but not waste vertical space
+ QMargins margins(1, 0, 1, 0);
+ ui.location->setContentsMargins(margins);
+ ui.suit->setContentsMargins(margins);
+ Q_FOREACH (QLabel *label, findChildren<QLabel *>()) {
+ label->setContentsMargins(margins);
+ }
ui.cylinders->view()->horizontalHeader()->setContextMenuPolicy(Qt::ActionsContextMenu);
QSettings s;