gui: make spacing more consistent

Change-Id: I5bb44c440b33cb0b5de0f5e2457c9226afe74a50
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/30489
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Alexander Zaft <a.zaft@fz-juelich.de>
Reviewed-by: Georg Brandl <g.brandl@fz-juelich.de>
This commit is contained in:
Georg Brandl
2023-02-21 16:45:36 +01:00
committed by Georg Brandl
parent d641784104
commit 318f33961a
4 changed files with 37 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ class CollapsibleWidget(QWidget):
line.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Maximum)
l = QVBoxLayout()
l.setContentsMargins(0, 0, 0, 0)
l.addWidget(self.widget)
self.widgetContainer.setLayout(l)
self.widgetContainer.setMaximumHeight(0)
@@ -26,6 +27,7 @@ class CollapsibleWidget(QWidget):
layout.addWidget(self.button, 0, 0, Qt.AlignLeft)
layout.addWidget(line, 0, 1, 1, 1)
layout.addWidget(self.widgetContainer, 1, 0, -1, -1)
layout.setContentsMargins(0, 6, 0, 0)
self.setLayout(layout)
def _collapse(self, expand):