qt6-bb10/tests/auto/gui
Marc Mutz f9acbaccde QPixmap::load: ensure QBitmap stays a QBitmap even on failure
... and avoid detach()ing potentially large data for just
preserving the QPlatformPixmap::pixelType().

A QBitmap differs from a QPixmap (its base class, urgh)
by always having a data != nullptr and a Bitmap pixel
type, yet load() was unconditionally setting 'data' to
nullptr on failure, turning a QBitmap into a non-QBitmap.

Fix by move-assigning a null QBitmap instead of resetting
'data'.

Add some tests.

Change-Id: Ida58b3b24d96472a5f9d0f18f81cc763edcf3c16
Reviewed-by: Anton Kudryavtsev <a.kudryavtsev@netris.ru>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-10-06 16:39:13 +00:00
..
image QPixmap::load: ensure QBitmap stays a QBitmap even on failure 2016-10-06 16:39:13 +00:00
itemmodels Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
kernel Blacklist modalDialogClosingOneOfTwoModal on OS X 2016-06-04 18:36:04 +00:00
math3d tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
painting Improve performance of QColor::name, now more than 4 times faster 2016-08-05 09:56:12 +00:00
qopengl Merge remote-tracking branch 'origin/5.5' into 5.6 2016-01-19 10:03:01 +01:00
qopenglconfig Fix crash in dumpConfiguration 2016-08-23 17:52:47 +00:00
text Fix crash when doing many text layouts with superscript/subscript 2016-09-29 12:43:19 +00:00
util tst_qdesktopservices: Use regular expression to suppress error message. 2015-10-02 09:34:41 +00:00
gui.pro Add qopenglconfig test. 2015-02-02 23:05:41 +00:00