qt5base-lts/tests/auto/gui/painting
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
..
qbrush Fix assert/crash when creating QBrush with null QGradient 2019-04-01 11:56:42 +00:00
qcolor Fix QColor::toCmyk() for rgb(0, 0, 0) 2019-02-05 22:47:33 +00:00
qpagelayout
qpagesize
qpaintengine
qpainter Avoid crash in blitting or fast draw when QPointF is too big 2018-12-11 18:32:53 +00:00
qpainterpath winrt: Fix tst_QPainterPath 2017-05-31 13:10:05 +00:00
qpainterpathstroker
qpathclipper Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qpdfwriter Copy stretch to multifont fontDef 2017-04-05 11:27:15 +00:00
qpen
qpolygon Add QPolygon::intersects() methods 2017-05-18 08:55:16 +00:00
qregion tst_QRegion: compile under QT_DISABLE_DEPRECATED_BEFORE=0x051200 2017-12-07 19:10:09 +00:00
qtransform Fix QTransform::transposed() result having wrong transformation type 2018-06-06 08:59:20 +00:00
qwmatrix Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00