mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix usage of qtpy in assets widget
This commit is contained in:
parent
7ce1dfb2c8
commit
dd8a7e5653
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ class UnderlinesAssetDelegate(QtWidgets.QItemDelegate):
|
|||
def paint(self, painter, option, index):
|
||||
"""Replicate painting of an item and draw color bars if needed."""
|
||||
# Qt4 compat
|
||||
if Qt.__binding__ in ("PySide", "PyQt4"):
|
||||
if qtpy.API in ("pyside", "pyqt4"):
|
||||
option = QStyleOptionViewItemV4(option)
|
||||
|
||||
painter.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue