diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2019-01-23 10:40:18 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2019-01-25 11:21:43 +0000 |
commit | c4e7f3ab6555c87fb41c5f341524445283720e6a (patch) | |
tree | 0cc977091110b7676d1a1559a09ba8033f2091d4 /src/platformheaders/eglfsfunctions/qeglfsfunctions.h | |
parent | 75335b71c9d9355d93e3c731cb00765c357e3c63 (diff) |
QMacStyle: fix PE_PanelLineEdit and PE_FrameLineEdit handling
NSTextField (or its cell) that we use to paint PE_FrameLineEdit overpaints
whatever fill color QCommonStyle::drawPrimitive(PE_PanelLineEdit) found
in opt->palette and using for PE_PanelLineEdit. As a result the ability
to customize widget's colors is lost - we always use the system default
colors on top of the custom background color. It's not a problem
in 'Dark' mode apparently (controls are transparent there anyway).
If it's not 'Dark' mode and common style, indeed, wants from QMacStyle to
draw PE_FrameLineEdit - we set the correct background color there.
Change-Id: Idad853257f637b028af4bd1181d78afdf079f455
Fixes: QTBUG-73183
Fixes: QTBUG-72662
Fixes: QTBUG-72428
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/platformheaders/eglfsfunctions/qeglfsfunctions.h')
0 files changed, 0 insertions, 0 deletions