qt6-bb10/src/widgets
Miikka Heikkinen 618ea643ca Fix some painting issues with native widgets
QWidgetPrivate::drawWidget was missing an important line about marking
native widgets dirty compared to 4.8, which caused all other widgets
besides the native one to not repaint unless window was resized in such
a way that the widgets would get hidden and then re-exposed.

The above didn't fix repainting issues when moving native widgets
(e.g. widgets in QMdiArea subwindows or just calling QWidget::move()).
Added setting widgets dirty to QWidgetWindow::handleExposeEvent to
address this issue.

If there is one native widget, Qt enforces that all widgets in same
parent hierarchy are native - presumably to get overlapping widgets
drawing correctly. However, qapplication_qpa.cpp set the attribute
Qt::AA_DontCreateNativeWidgetSiblings for all applications, which
caused only the parents of native windows be forced native, leading to
drawing artifacts related to siblings of native widgets (e.g.
overlapping QMdiArea subwindows). I don't see a reason for setting this
flag indiscriminately for all applications, so removed it.

Also added setting newly created QWindow visible if associated
widget is already visible, which can happen if regular widgets
are shown before the first native widget is shown and retroactively
forces other widgets native.

Task-number:QTBUG-25805
Change-Id: Ib133dae9b13cc6e7155e7cae00fc1339d3b5ae86
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
2012-05-29 20:13:11 +02:00
..
accessible Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtWidgets] 2012-05-03 06:10:20 +02:00
dialogs QtWidgets: remove \link usages 2012-05-29 11:35:21 +02:00
doc QtWidgets: remove \link usages 2012-05-29 11:35:21 +02:00
effects Doc: Modularize QtWidgets documentation. 2012-05-09 08:36:46 +02:00
graphicsview QtWidgets: remove \link usages 2012-05-29 11:35:21 +02:00
itemviews QtWidgets: remove \link usages 2012-05-29 11:35:21 +02:00
kernel Fix some painting issues with native widgets 2012-05-29 20:13:11 +02:00
statemachine Remove AccessibilityPrepare event. 2012-03-05 18:46:43 +01:00
styles QtWidgets: remove \link usages 2012-05-29 11:35:21 +02:00
util QtWidgets: remove \link usages 2012-05-29 11:35:21 +02:00
widgets QtWidgets: remove \link usages 2012-05-29 11:35:21 +02:00
Qt5WidgetsConfigExtras.cmake.in Properly quote all variables which are paths. 2012-05-16 12:03:54 +02:00
Qt5WidgetsMacros.cmake Convert macros to functions. 2011-12-21 19:58:14 +01:00
QtGui.dynlist library split 2011-05-07 00:02:01 +02:00
widgets.pro Remove src/widgets/kernel/x11.pri. 2012-05-17 05:14:28 +02:00