From ba82958af97b831875ea568f87ec49d8fad32297 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 3 Jan 2013 10:23:56 +0100 Subject: Widgets: Remove declaration of built-in and automatic metatypes. These types are either built-in or 'automatically declared' and so don't need to be explicitly declared as metatypes. Change-Id: Ibe8e2ec867afb4051a3c7eef806d9cd86945928b Reviewed-by: David Faure --- tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp | 1 - tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 2 -- 2 files changed, 3 deletions(-) (limited to 'tests/auto/widgets/kernel') diff --git a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp index dc7318ca64..81e42fbe42 100644 --- a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp +++ b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp @@ -513,7 +513,6 @@ int Qt42Style::pixelMetric(PixelMetric metric, const QStyleOption * option /*= 0 typedef QList PointList; -Q_DECLARE_METATYPE(PointList) class SizeHinterFrame : public QLabel diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index dd209e5b59..a24f69b35e 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -4311,8 +4311,6 @@ void tst_QWidget::qobject_castInDestroyedSlot() QVERIFY(checker.wasQWidget == true); } -Q_DECLARE_METATYPE(QList) - // Since X11 WindowManager operations are all async, and we have no way to know if the window // manager has finished playing with the window geometry, this test can't be reliable on X11. -- cgit v1.2.3