mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
restore saved painter
This commit is contained in:
parent
018297be1c
commit
8d6f83ffa7
1 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ class SelectVersionComboBox(QtWidgets.QComboBox):
|
||||||
status_text_rect.setLeft(icon_rect.right() + 2)
|
status_text_rect.setLeft(icon_rect.right() + 2)
|
||||||
|
|
||||||
if status_text_rect.width() <= 0:
|
if status_text_rect.width() <= 0:
|
||||||
|
painter.restore()
|
||||||
return
|
return
|
||||||
|
|
||||||
if status_text_rect.width() < metrics.width(status_name):
|
if status_text_rect.width() < metrics.width(status_name):
|
||||||
|
|
@ -144,6 +145,7 @@ class SelectVersionComboBox(QtWidgets.QComboBox):
|
||||||
QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter,
|
QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter,
|
||||||
status_name
|
status_name
|
||||||
)
|
)
|
||||||
|
painter.restore()
|
||||||
|
|
||||||
def set_current_index(self, index):
|
def set_current_index(self, index):
|
||||||
model = self._combo_view.model()
|
model = self._combo_view.model()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue