qt5base-lts/tests/auto/gui
Tor Arne Vestbø b5f972361a Introduce QWindow::paintEvent with QPA plumbing
The explicit paint event on QtGui and QPA level allows us to untangle
the expose event, which today has at least 3 different meanings.

It also allows us to follow the platform more closely in its semantics
of when painting can happen. On some platforms a paint can come in
before a window is exposed, e.g. to prepare the first frame. On others
a paint can come in after a window has been de-exposed, to save a
snapshot of the window for use in an application switcher or similar.

The expose keeps its semantics of being a barrier signaling that the
application can now render at will, for example in a threaded render
loop.

There are two compatibility code paths in this patch:

  1. For platform plugins that do not yet report the PaintEvents
     capability, QtGui will synthesize paint events on the platform's
     behalf, based on the existing expose events coming from the platform.

  2. For applications that do not yet implement paintEvent, QtGui will
     send expose events instead, ensuring the same behavior as before.

For now none of the platform plugins deliver paint events natively,
so the first compatibility code path is always active.

Task-numnber: QTBUG-82676
Change-Id: I0fbe0d4cf451d6a1f07f5eab8d376a6c8a53ce8c
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
2020-08-26 16:44:53 +02:00
..
image Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
itemmodels Move QFileSystemModel into QtGui 2020-08-25 06:33:44 +02:00
kernel Introduce QWindow::paintEvent with QPA plumbing 2020-08-26 16:44:53 +02:00
math3d Remove deprecated qGenericMatrix{To,From}Matrix4x4 functions 2020-08-26 01:49:24 +02:00
painting Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
qopengl CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qopenglconfig CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qvulkan CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
rhi rhi: sanityCheckGraphicsPipeline handle no vertex attributes 2020-08-18 07:58:50 +02:00
text Rename confusingly named QFont/QPalette::resolve overloads 2020-08-25 17:59:10 +02:00
util Don't capture this explicitly in tests 2020-07-29 18:34:16 +00:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
gui.pro Remove winrt 2020-06-06 20:25:49 +02:00