mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
draw placeholder with disabled color
This commit is contained in:
parent
a312c46384
commit
e13de28a24
1 changed files with 2 additions and 1 deletions
|
|
@ -208,7 +208,8 @@ class MultiSelectionComboBox(QtWidgets.QComboBox):
|
|||
draw_text = False
|
||||
if draw_text:
|
||||
option.currentText = combotext
|
||||
option.palette.setCurrentColorGroup(QtGui.QPalette.Disabled)
|
||||
# Draw text as disabled -> to mimic placeholder color
|
||||
option.state &= ~QtWidgets.QStyle.State_Enabled
|
||||
painter.drawControl(QtWidgets.QStyle.CE_ComboBoxLabel, option)
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue