mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add no items to select from item and stretch
This commit is contained in:
parent
fc99459590
commit
7ae9fa9cf5
1 changed files with 8 additions and 1 deletions
|
|
@ -414,7 +414,14 @@ class FilterValueItemsView(QtWidgets.QWidget):
|
|||
)
|
||||
widget.selected.connect(self._on_item_clicked)
|
||||
self._widgets_by_id[widget_id] = widget
|
||||
self._content_layout.addWidget(widget)
|
||||
self._content_layout.addWidget(widget, 0)
|
||||
|
||||
if self._content_layout.count() == 0:
|
||||
empty_label = QtWidgets.QLabel(
|
||||
"No items to select from...", self
|
||||
)
|
||||
self._content_layout.addWidget(empty_label, 0)
|
||||
self._content_layout.addStretch(1)
|
||||
|
||||
def _on_item_clicked(self, widget_id):
|
||||
widget = self._widgets_by_id.get(widget_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue