diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp index 123f049e347..27c0f6e66a8 100644 --- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp +++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp @@ -79,6 +79,7 @@ Q_DECLARE_METATYPE(QGradientStops) Q_DECLARE_METATYPE(QPainterPath) +Q_DECLARE_METATYPE(QImage::Format) class tst_QPainter : public QObject { @@ -1506,8 +1507,6 @@ void tst_QPainter::drawRoundRect() } } -Q_DECLARE_METATYPE(QImage::Format) - void tst_QPainter::qimageFormats_data() { QTest::addColumn("format");