summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2011-12-03 22:50:18 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-04 20:45:49 +0100
commit7d2ab7f01d98edbb9402478fb6d68fab044bfa38 (patch)
treea52b661360502852983107a429bc4477a4adc6e3 /src/widgets/graphicsview
parent298f8b67ab1a5aba39eb51a0a9cdbb15a3768372 (diff)
Move the metatype declaration for QGraphicsScene.
From where it is forward declared to where it is fully defined. Change-Id: Ie2240ffef6d1edbbbd5b193f9528ef94ef412d82 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/graphicsview')
-rw-r--r--src/widgets/graphicsview/qgraphicsitem.h1
-rw-r--r--src/widgets/graphicsview/qgraphicsscene.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsitem.h b/src/widgets/graphicsview/qgraphicsitem.h
index 1e4cbaced6..811305ac9d 100644
--- a/src/widgets/graphicsview/qgraphicsitem.h
+++ b/src/widgets/graphicsview/qgraphicsitem.h
@@ -1159,7 +1159,6 @@ Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, QGraphicsItem::GraphicsItemFlag
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QGraphicsItem *)
-Q_DECLARE_METATYPE(QGraphicsScene *)
QT_BEGIN_NAMESPACE
diff --git a/src/widgets/graphicsview/qgraphicsscene.h b/src/widgets/graphicsview/qgraphicsscene.h
index 7895584827..1b475e4d02 100644
--- a/src/widgets/graphicsview/qgraphicsscene.h
+++ b/src/widgets/graphicsview/qgraphicsscene.h
@@ -324,6 +324,8 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QGraphicsScene::SceneLayers)
QT_END_NAMESPACE
+Q_DECLARE_METATYPE(QGraphicsScene *)
+
QT_END_HEADER
#endif