summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetaobject.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-10-24 17:21:03 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-10-29 18:46:46 +0000
commitbfc76fa39c2bab67ef1857407be539b1f88919e5 (patch)
tree4dfbd59f95eb56249964c6d5d615ea199ee18d44 /src/corelib/kernel/qmetaobject.cpp
parent752b56dc3b22f13b296978124ffc782f12e9f15e (diff)
macOS: paint the menu-like empty area of an itemview
CE_MenuEmptyArea wasn't handled, as for menus PE_PanelMenu paints all the pixels. However, QComboBox's internal QComboBoxListView type respects that the QComboBox might use a popup menu for the drop down, and paints the background using CE_MenuEmptyArea. If a custom delegate is used, then that resulted in a base-colored background on an otherwise window-colored drop-down. Fix this by handling CE_MenuEmptyArea to delegate to PE_PanelMenu if we are painting an itemview. Change-Id: I5a8ba43e211564e92a3cfefa2778e615caa0f877 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.cpp')
0 files changed, 0 insertions, 0 deletions