Avoid stretching items when number is low.

This commit is contained in:
Sergio Martínez Portela 2021-11-03 00:45:28 +01:00
parent d29dac14c3
commit 527cfe80d3

View File

@ -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)