mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 17:04:54 +01:00
added simple refresh button for projects
This commit is contained in:
parent
135d811654
commit
f8ef837a0c
1 changed files with 12 additions and 1 deletions
|
|
@ -17,12 +17,23 @@ class Window(QtWidgets.QWidget):
|
|||
|
||||
dbcon = AvalonMongoDB()
|
||||
|
||||
# TOP Project selection
|
||||
project_widget = QtWidgets.QWidget(self)
|
||||
|
||||
project_model = ProjectModel(dbcon)
|
||||
|
||||
project_combobox = QtWidgets.QComboBox()
|
||||
project_combobox = QtWidgets.QComboBox(project_widget)
|
||||
project_combobox.setModel(project_model)
|
||||
project_combobox.setRootModelIndex(QtCore.QModelIndex())
|
||||
|
||||
refresh_projects_btn = QtWidgets.QPushButton("Refresh", project_widget)
|
||||
|
||||
project_layout = QtWidgets.QHBoxLayout(project_widget)
|
||||
project_layout.setContentsMargins(0, 0, 0, 0)
|
||||
project_layout.addWidget(refresh_projects_btn, 0)
|
||||
project_layout.addWidget(project_combobox, 0)
|
||||
project_layout.addStretch(1)
|
||||
|
||||
hierarchy_model = HierarchyModel(dbcon)
|
||||
|
||||
hierarchy_view = HierarchyView(hierarchy_model, self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue