qt5base-lts/tests/auto
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
..
android
bic/data Add binary compatibility files for 5.12 for QtBase 2018-12-21 19:42:57 +00:00
cmake Export modules' enabled/disabled features to cmake 2018-09-28 13:10:28 +00:00
concurrent Merge remote-tracking branch 'origin/5.11' into dev 2018-02-16 08:54:58 +01:00
corelib QPixmap: More safe failing if qApp is not a QGuiApplication 2019-03-22 08:06:43 +00:00
dbus Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
gui Fix assert/crash when creating QBrush with null QGradient 2019-04-01 11:56:42 +00:00
guiapplauncher
installed_cmake
network Blacklist the reverse lookup of 8.8.8.8 to unblock integrations 2019-03-29 13:45:47 +00:00
opengl qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
other Fix build with -no-gui on macOS 2019-03-04 12:25:53 +00:00
printsupport tst_QPrinter: stabilize qprinter test 2019-01-20 13:39:54 +00:00
shared Read font selection flags and use them when querying for metrics 2018-11-30 16:15:03 +00:00
sql Fix a couple of SQL tests 2019-02-19 11:00:19 +00:00
testlib Add testlib selftests for double and for non-finite float and double 2019-02-06 10:11:22 +00:00
tools Fix installation of .pdb files for applications that have VERSION set 2019-03-31 12:45:24 +00:00
widgets Blacklist qgraphicsitem::sorting test on opensuse-42.3 2019-03-29 07:36:48 +00:00
xml
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h Rework QNetworkReply tests to use docker-based test servers 2018-07-27 17:40:27 +00:00
testserver.pri Postpone testing docker images and files until running 'make check' 2018-08-30 04:06:51 +00:00