mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
have ability to not use animations in pyblish gui
This commit is contained in:
parent
576c2726e5
commit
80f2b43b6a
1 changed files with 11 additions and 2 deletions
|
|
@ -166,14 +166,18 @@ class Window(QtWidgets.QDialog):
|
|||
# TODO add parent
|
||||
overview_page = QtWidgets.QWidget()
|
||||
|
||||
overview_instance_view = view.InstanceView(parent=overview_page)
|
||||
overview_instance_view = view.InstanceView(
|
||||
animated=settings.Animated, parent=overview_page
|
||||
)
|
||||
overview_instance_delegate = delegate.InstanceDelegate(
|
||||
parent=overview_instance_view
|
||||
)
|
||||
overview_instance_view.setItemDelegate(overview_instance_delegate)
|
||||
overview_instance_view.setModel(instance_model)
|
||||
|
||||
overview_plugin_view = view.PluginView(parent=overview_page)
|
||||
overview_plugin_view = view.PluginView(
|
||||
animated=settings.Animated, parent=overview_page
|
||||
)
|
||||
overview_plugin_delegate = delegate.PluginDelegate(
|
||||
parent=overview_plugin_view
|
||||
)
|
||||
|
|
@ -669,6 +673,11 @@ class Window(QtWidgets.QDialog):
|
|||
target_page.show()
|
||||
return
|
||||
|
||||
if not settings.Animated:
|
||||
previous_page.setVisible(False)
|
||||
target_page.setVisible(True)
|
||||
return
|
||||
|
||||
width = previous_page.frameGeometry().width()
|
||||
offset = QtCore.QPoint(direction * width, 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue