mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
use 'QtGui' to get 'QPalette'
This commit is contained in:
parent
2ff21e39ec
commit
4264af63af
1 changed files with 4 additions and 4 deletions
|
|
@ -220,14 +220,14 @@ class StatusDelegate(QtWidgets.QStyledItemDelegate):
|
|||
)
|
||||
focus_opt.backgroundColor = option.palette.color(
|
||||
(
|
||||
QtWidgets.QPalette.Normal
|
||||
QtGui.QPalette.Normal
|
||||
if option.state & QtWidgets.QStyle.State_Enabled
|
||||
else QtWidgets.QPalette.Disabled
|
||||
else QtGui.QPalette.Disabled
|
||||
),
|
||||
(
|
||||
QtWidgets.QPalette.Highlight
|
||||
QtGui.QPalette.Highlight
|
||||
if option.state & QtWidgets.QStyle.State_Selected
|
||||
else QtWidgets.QPalette.Window
|
||||
else QtGui.QPalette.Window
|
||||
)
|
||||
)
|
||||
style.drawPrimitive(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue