qt5base-lts/src
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
..
3rdparty Replace bundled libjpeg by libjpeg-turbo 1.5.2 2017-09-28 10:06:26 +00:00
android Forward Service.onBind notification to Qt 2017-07-04 18:38:19 +00:00
angle Remove QMAKE_LIBS_CORE variable 2017-08-28 13:10:38 +00:00
concurrent Adapt to the C++ SIC introduced by P0012: noexcept specialization 2017-05-03 02:39:56 +00:00
corelib Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
dbus Merge remote-tracking branch 'origin/5.9' into dev 2017-08-08 11:48:10 +02:00
gui Merge "Merge remote-tracking branch 'origin/5.9' into 5.10" into refs/staging/5.10 2017-10-05 12:38:45 +00:00
network Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
opengl Make high-dpi QGLWidget work cross platform 2017-08-02 21:58:21 +00:00
openglextensions Also release winmain, qopenglextensions under commercial licenses 2016-11-18 16:19:56 +00:00
platformheaders Merge remote-tracking branch 'origin/5.9' into dev 2017-04-20 12:31:27 +02:00
platformsupport Merge "Merge remote-tracking branch 'origin/5.9' into 5.10" into refs/staging/5.10 2017-10-05 12:38:45 +00:00
plugins QMacStyle: smooth QMenu corners for real 2017-10-05 17:04:07 +00:00
printsupport Merge remote-tracking branch 'origin/5.9' into 5.10 2017-09-06 13:26:31 +02:00
sql Merge remote-tracking branch 'origin/5.9' into 5.10 2017-09-20 11:58:32 +02:00
testlib Ensure result of all QTest::qWaitFor are verified 2017-10-05 15:15:36 +00:00
tools Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
widgets QMacStyle: smooth QMenu corners for real 2017-10-05 17:04:07 +00:00
winmain Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-08 15:49:18 +01:00
xml Prefer rvalue versions of toLatin() and toUtf8() 2017-03-30 20:31:59 +00:00
src.pro Merge remote-tracking branch 'origin/5.9' into dev 2017-03-28 09:28:31 +02:00