From 4319f698c893683c6a031e41272b85cfb25ac931 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 3 Jan 2013 10:33:51 +0100 Subject: Remove metatype registration of built-in types. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As they are built-in, they are effectively registered at compile-time already. Change-Id: I7ae6ba16088eab5d19213fa7b07c2a7760988a86 Reviewed-by: Jędrzej Nowacki --- src/testlib/doc/snippets/code/doc_src_qsignalspy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/testlib/doc/snippets/code') diff --git a/src/testlib/doc/snippets/code/doc_src_qsignalspy.cpp b/src/testlib/doc/snippets/code/doc_src_qsignalspy.cpp index 6741ae7942b..694f2062129 100644 --- a/src/testlib/doc/snippets/code/doc_src_qsignalspy.cpp +++ b/src/testlib/doc/snippets/code/doc_src_qsignalspy.cpp @@ -65,14 +65,14 @@ QVERIFY(arguments.at(2).type() == QVariant::double); //! [2] -qRegisterMetaType("QModelIndex"); -QSignalSpy spy(&model, SIGNAL(whatever(QModelIndex))); +qRegisterMetaType(); +QSignalSpy spy(&model, SIGNAL(whatever(SomeStruct))); //! [2] //! [3] // get the first argument from the first received signal: -QModelIndex result = qvariant_cast(spy.at(0).at(0)); +SomeStruct result = qvariant_cast(spy.at(0).at(0)); //! [3] -- cgit v1.2.3