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:
parent
30978dc1a5
commit
709401e680
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user