qt5base-lts/tests/auto/gui/image
Marc Mutz 2431bf1b20 QPixelFormat: don't inherit it
Instead of abusing inheritance to provide convenience constructors,
use simple inline constructor functions. The name got a lower-case
q to indicate a free function. The usual fromXYZ() static methods
were deemed not fitting in this case in the initial round of review,
since they implied some kind of conversion while these functions are
simply constructors of formsts, which contain no data.

This also solves the problem that some of these ctors could have been
called with just one argument and were therefore candidates for hidden
QPixelFormat temporary injection.

QPixelFormatRgb was renamed to qPixelFormatRgba to explain the third
argument at the call site better.

There seem to be no users of this class in qt5.git at this time.

Change-Id: Ib4fe8ceb2d30744127b116a748724a3406400eb8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-08-09 09:05:24 +02:00
..
qicoimageformat Make the ICO image handler capable of reading CUR files too. 2014-06-05 19:10:58 +02:00
qicon tst_qicon: Resolve all files using QFINDTESTDATA(). 2014-06-22 09:41:06 +02:00
qimage QPixelFormat: don't inherit it 2014-08-09 09:05:24 +02:00
qimageiohandler QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qimagereader Remove qSort usages from gui tests 2014-02-20 08:10:19 +01:00
qimagewriter Remove qSort usages from gui tests 2014-02-20 08:10:19 +01:00
qmovie QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qpicture Serialize QPicture using the latest QDataStream version. 2014-04-02 15:18:11 +02:00
qpixmap Reduce repetitive invocations of QFINDTESTDATA. 2014-07-10 07:07:30 +02:00
qpixmapcache QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
image.pro Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00