qt5base-lts/tests/auto/gui
Eirik Aavitsland 3b7db8ac90 Fix assert/crash when creating QBrush with null QGradient
The QBrush constructor taking a QGradient would assert or crash if
passed a null (NoGradient) gradient. But it is not necessary for the
API to be as brittle as that: instead the result can simply be a null
QBrush object, i.e. the same as the default QBrush() constructor
creates (style == NoBrush).

This issue comes up now since with the recent introduction of
QGradient presets, the API opens for using QGradient directly, whereas
earlier, only the subclasses QLinearGradient etc. were to be used.

Fixes: QTBUG-74648
Change-Id: I1a9b1c4654e4375aa6684700a262cc0946851448
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2019-04-01 11:56:42 +00:00
..
image Avoid creating wide images with negative bytesPerLine 2019-02-14 07:48:38 +00:00
itemmodels Fix QSIM::itemData returning role 255 2018-09-06 11:51:28 +00:00
kernel Clear only one device from g_pointIdMap when all points released 2019-02-26 19:52:25 +00:00
math3d Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting Fix assert/crash when creating QBrush with null QGradient 2019-04-01 11:56:42 +00:00
qopengl Fix OpenGL ES2 build on Linux 2019-02-15 12:58:12 +00:00
qopenglconfig Fix tst_QOpenGlConfig for platforms with builtin test data 2017-06-19 07:05:59 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
text QTextDocument: Do respect white-space:nowrap 2019-02-13 08:14:47 +00:00
util Texture file support: add mipmap reading to ktx handler 2018-09-12 08:41:38 +00:00
gui.pro winrt: Skip/blacklist failing opengl tests 2018-05-28 08:36:55 +00:00