qt5base-lts/src/plugins
Oleg Yadrov 5ff9d6a470 QMacStyle: smooth QMenu corners for real
It's been for years that QMenu's rounded corners in qmacstyle_mac were
done via QWidget::setMask(QRegion). Unfortunately, QRegion mask does not
work well with retina displays and also does not support translucency.
That's why in this change we explicitly make QMenu's background
transparent and then draw a rectangle with rounded corners in
QMacStyle::drawPrimitive(PE_PanelMenu). This not only gives much better
result than the mask-based approach, but also de-HIThemes QMenu.

As a consequence, QComboBoxPrivateContainer doesn't get any mask from
QMacStyle anymore. Therefore, when the mask is empty, we need to paint
PE_PanelMenu before invoking QFrame's paint event handler.

Made-with: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Change-Id: Ia9236176113f23b86e45507fa6ddf77236084ce3
Reviewed-by: Oleg Yadrov <oleg.yadrov@qt.io>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
2017-10-05 17:04:07 +00:00
..
bearer Merge remote-tracking branch 'origin/5.9' into dev 2017-03-28 09:28:31 +02:00
generic Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
imageformats Allow QImage with more than 2GByte of image data 2017-07-08 08:17:13 +00:00
platforminputcontexts Hide ibus IM on password fields 2017-09-18 22:20:05 +00:00
platforms QMacStyle: smooth QMenu corners for real 2017-10-05 17:04:07 +00:00
platformthemes Merge remote-tracking branch 'origin/5.9' into dev 2017-08-15 16:31:48 +02:00
printsupport Initialize the print engine with the given printer name 2017-08-25 06:50:10 +00:00
sqldrivers Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
styles QMacStyle: smooth QMenu corners for real 2017-10-05 17:04:07 +00:00
plugins.pro Merge remote-tracking branch 'origin/5.9' into dev 2017-07-06 13:54:25 +02:00