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 <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
Marc Mutz 2013-09-18 19:26:48 +02:00 committed by The Qt Project
parent bc016c53fc
commit eec9567111

View File

@ -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<QImage::Format>("format");