From eec956711106c3c488d94466485eaefe0d1e4dd8 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 18 Sep 2013 19:26:48 +0200 Subject: tst_QPainter: fix a Q_DECLARE_METATYPE coming too late The compiler complained that the specialization was required before it was issued. Fixed by moving it up to the others near the top of the file. Change-Id: I0ae162a5db5ef29f24cd1d32285a1870fdd24b9b Reviewed-by: Thiago Macieira Reviewed-by: Olivier Goffart Reviewed-by: Stephen Kelly Reviewed-by: Gunnar Sletta --- tests/auto/gui/painting/qpainter/tst_qpainter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/auto/gui') diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp index 123f049e34..27c0f6e66a 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"); -- cgit v1.2.3