qt6-bb10/tests/auto/widgets
Błażej Szczygieł bc410cc706 QtWidgets: Reduce paint events when resizing native widget
This patch reduces paint events by removing code which sets native
widgets dirty in QWidgetWindow::handleExposeEvent. Native widgets are
also marked dirty in QWidgetPrivate::drawWidget, so it is enough for
proper painting.

This restores Qt4 behavior when one resize means one repaint for native
widgets. Without this patch the native widget is marked as dirty on
every expose event, so one repaint is from syncBackingStore and second
(or more) is from marking the widget dirty explicitly.

This patch improves performance of native widgets and it also reduces
locks when paint event is v-synced, e.g. on OpenGL swap buffers or on
any other technology like VDPAU, VA-API, etc.

Added autotest for checking number of paint events for native widgets.

Task-number: QTBUG-50796
Change-Id: I4e1649069e2e73d15b038fd1834d0551915252ee
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-05-19 10:11:27 +00:00
..
dialogs Work around QFont bug in QFontDialog test 2016-05-13 21:08:07 +00:00
effects Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
gestures Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
graphicsview QWidget::mapTo/FromGlobal(): Rewrite using a QTransform. 2016-05-14 06:51:10 +00:00
itemviews QTableView: Fix selection for reordered or hidden rows/columns 2016-05-09 05:14:38 +00:00
kernel QtWidgets: Reduce paint events when resizing native widget 2016-05-19 10:11:27 +00:00
styles Make sure QStyleOption is correctly initialized. 2016-04-05 20:32:26 +00:00
util Pass -silent to lrelease to avoid cruft in test logs. 2016-02-02 16:28:07 +00:00
widgets QMenuBar: nested parenting fix 2016-05-18 17:40:11 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00