mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
project combobox adjust to content
This commit is contained in:
parent
3821a00029
commit
305c0d7a6b
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ class ProjectManagerWindow(QtWidgets.QWidget):
|
|||
|
||||
project_model = ProjectModel(dbcon)
|
||||
project_combobox = QtWidgets.QComboBox(project_widget)
|
||||
project_combobox.setSizeAdjustPolicy(
|
||||
QtWidgets.QComboBox.AdjustToContents
|
||||
)
|
||||
project_combobox.setModel(project_model)
|
||||
project_combobox.setRootModelIndex(QtCore.QModelIndex())
|
||||
style_delegate = QtWidgets.QStyledItemDelegate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue