qt5base-lts/src
Tor Arne Vestbø 2ef5362011 QMacStyle: Make helper-NSViews layer-backed
This prevents the view from triggering display of its superview when
being temporarily added, which is both inefficient and causes issues
when those dirty-rects are wrong due to the wrong frame position of
the added view.

The additional drawRect: calls and corresponding expose events
resulting from the needsDisplay calls also caused repaint issues
in Qt Widgets. QWidgetBackingStore doesn't seem to take the exposed
region into account for an expose event, and will try to flush all
dirty regions. Some of those may be outside the exposed region,
and will be clipped away by the window system, never ending up on
the screen, but with Widgets still thinking it has flushed all
dirty regions.

This is a separate issue, possibly solvable by setting the
wantsDefaultClipping property on NSView to NO, but this needs
further testing, so applying this commit as workaround makes
sense, even if it's just hiding the real bug.

Task-number: QTBUG-67998
Task-number: QTBUG-68023
Task-number: QTBUG-69990
Task-number: QTBUG-69740
Task-number: QTBUG-69292
Task-number: QTBUG-69332
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 38979332d0)
Change-Id: I4ef3fef29f749daa4f3a11fe9186ae77b359f966
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2018-08-28 10:28:47 +00:00
..
3rdparty Document xkbcommon version 2018-08-15 14:14:26 +00:00
android Add translation for unsupported_android_version for fr and de 2018-05-25 06:50:40 +00:00
angle [Backport] Remove usage of auto_ptr in MacroExpander 2018-06-21 13:13:04 +00:00
concurrent Doc: Fix typo and grammar issues 2018-07-09 17:00:19 +00:00
corelib Doc: Fix typos in QRectF documentation 2018-08-27 17:48:18 +00:00
dbus Doc: Add references to QDBusAbstractAdaptor implementation example 2018-06-29 05:16:04 +00:00
gui Merge 5.11 into 5.11.2 2018-08-27 15:49:03 +02:00
network Normalize path segments in QHttpNetworkRequest::uri 2018-08-16 04:52:56 +00:00
opengl doc: Add missing override and remove redundant virtual for snippets 2018-08-16 11:00:31 +00:00
openglextensions Replace Q_DECL_FINAL with final 2017-09-22 07:30:01 +00:00
platformheaders Doc: Add missing full stops in briefs 2018-06-21 14:23:30 +00:00
platformsupport Fix Clang annoying, useless warning about using %llu when it wants %lu 2018-07-05 14:50:35 +00:00
plugins QMacStyle: Make helper-NSViews layer-backed 2018-08-28 10:28:47 +00:00
printsupport QWin32PrintEngine: Fix crash in drawPixmap(), drawImage() 2018-05-23 08:26:57 +00:00
sql doc: Add missing override and remove redundant virtual for snippets 2018-08-16 11:00:31 +00:00
testlib Document version of copied valgrind, kernel headers 2018-08-20 07:50:04 +00:00
tools Fix apkPath for gradle 4.0+ 2018-08-09 07:21:19 +00:00
widgets doc: Add missing override and remove redundant virtual for snippets 2018-08-16 11:00:31 +00:00
winmain Merge remote-tracking branch 'origin/5.10' into dev 2018-01-11 18:10:41 +01:00
xml Doc: Remove non-reentrant from QDomDocument::setContent 2018-08-27 13:49:40 +00:00
src.pro Move androiddeployqt to qtbase 2018-06-21 11:08:57 +00:00