Trace QImage::Format as int in QImageData::create()
Traces can contain only a few types; for now, enums have to be converted
to int. Amends 6d323c0b22
Task-number: QTBUG-102862
Change-Id: If129d03b13e723350bac987c6e35d471aa6c17e2
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
bb10
parent
3a5334e5be
commit
8a5fa635ca
|
|
@ -99,7 +99,7 @@ QImageData * QImageData::create(const QSize &size, QImage::Format format)
|
|||
if (size.isEmpty() || format <= QImage::Format_Invalid || format >= QImage::NImageFormats)
|
||||
return nullptr; // invalid parameter(s)
|
||||
|
||||
Q_TRACE_SCOPE(QImageData_create, size, format);
|
||||
Q_TRACE_SCOPE(QImageData_create, size, static_cast<int>(format));
|
||||
|
||||
int width = size.width();
|
||||
int height = size.height();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ QFontDatabase_load(const QStringList &family, int pointSize)
|
|||
QFontDatabase_loadEngine(const QStringList &families, int pointSize)
|
||||
QFontDatabasePrivate_addAppFont(const QString &fileName)
|
||||
|
||||
QImageData_create_entry(const QSize &size, QImage::Format format)
|
||||
QImageData_create_entry(const QSize &size, int format)
|
||||
QImageData_create_exit()
|
||||
QImage_copy_entry(const QRect& r)
|
||||
QImage_copy_exit()
|
||||
|
|
|
|||
Loading…
Reference in New Issue