From 7d2ab7f01d98edbb9402478fb6d68fab044bfa38 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 3 Dec 2011 22:50:18 +0100 Subject: 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 --- src/widgets/graphicsview/qgraphicsitem.h | 1 - src/widgets/graphicsview/qgraphicsscene.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widgets') 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 -- cgit v1.2.3