Avoid stretching items when number is low.
This commit is contained in:
parent
d29dac14c3
commit
527cfe80d3
4
main.py
4
main.py
@ -148,6 +148,8 @@ class Dialog(QDialog):
|
|||||||
for item in agenda.no_hour:
|
for item in agenda.no_hour:
|
||||||
layout.addWidget(self.build_agenda_task_widget(item))
|
layout.addWidget(self.build_agenda_task_widget(item))
|
||||||
|
|
||||||
|
layout.addStretch()
|
||||||
|
|
||||||
frame = QFrame(self.results)
|
frame = QFrame(self.results)
|
||||||
frame.setLayout(layout)
|
frame.setLayout(layout)
|
||||||
self.results.setWidget(frame)
|
self.results.setWidget(frame)
|
||||||
@ -204,6 +206,8 @@ class Dialog(QDialog):
|
|||||||
for note in notes[:MAX_SEARCH_NODES]:
|
for note in notes[:MAX_SEARCH_NODES]:
|
||||||
layout.addWidget(self.build_note_task_widget(note))
|
layout.addWidget(self.build_note_task_widget(note))
|
||||||
|
|
||||||
|
layout.addStretch()
|
||||||
|
|
||||||
frame = QFrame(self.results)
|
frame = QFrame(self.results)
|
||||||
frame.setLayout(layout)
|
frame.setLayout(layout)
|
||||||
self.results.setWidget(frame)
|
self.results.setWidget(frame)
|
||||||
|
Loading…
Reference in New Issue
Block a user