summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2013-09-18 19:26:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 23:45:06 +0200
commiteec956711106c3c488d94466485eaefe0d1e4dd8 (patch)
tree1fe45bdcfa127eb147b0b4e7a19b820bf9253e39 /tests/auto/gui
parentbc016c53fc25ee219a67fe496497d92f538c9124 (diff)
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>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r--tests/auto/gui/painting/qpainter/tst_qpainter.cpp3
1 files changed, 1 insertions, 2 deletions
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<QImage::Format>("format");