QImage: Add Q_GADGET and make format enumeration a Q_ENUM

This makes debugging easier.

Change-Id: I023fc1220b2a33db85bb8388bcfea433eb810f63
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Friedemann Kleint 2017-11-22 09:34:01 +01:00
parent 30978dc1a5
commit 709401e680

View File

@ -96,6 +96,7 @@ typedef void (*QImageCleanupFunction)(void*);
class Q_GUI_EXPORT QImage : public QPaintDevice
{
Q_GADGET
public:
enum InvertMode { InvertRgb, InvertRgba };
enum Format {
@ -132,6 +133,7 @@ public:
NImageFormats
#endif
};
Q_ENUM(Format)
QImage() Q_DECL_NOEXCEPT;
QImage(const QSize &size, Format format);