fix usage of qtpy in assets widget

This commit is contained in:
Jakub Trllo 2022-12-21 15:55:27 +01:00
parent 7ce1dfb2c8
commit dd8a7e5653

View file

@ -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()