From 527cfe80d39b42d74653052cbe31954300ea7317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Wed, 3 Nov 2021 00:45:28 +0100 Subject: [PATCH] Avoid stretching items when number is low. --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 1745ce0..36539f3 100755 --- a/main.py +++ b/main.py @@ -148,6 +148,8 @@ class Dialog(QDialog): for item in agenda.no_hour: layout.addWidget(self.build_agenda_task_widget(item)) + layout.addStretch() + frame = QFrame(self.results) frame.setLayout(layout) self.results.setWidget(frame) @@ -204,6 +206,8 @@ class Dialog(QDialog): for note in notes[:MAX_SEARCH_NODES]: layout.addWidget(self.build_note_task_widget(note)) + layout.addStretch() + frame = QFrame(self.results) frame.setLayout(layout) self.results.setWidget(frame)