From 0fd8816340dab1fa12128ad8d20815472db10a95 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 10 Jan 2012 14:46:34 +0100 Subject: Add QModelIndex as a built-in metatype. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib87cfff8b4baee78189f3df5e20d2e1a00d690e1 Reviewed-by: Jędrzej Nowacki --- tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto/corelib/kernel/qmetatype') diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp index 475f190326..d5aa369a92 100644 --- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp +++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp @@ -449,6 +449,9 @@ template<> struct TestValueFactory { template<> struct TestValueFactory { static QUuid *create() { return new QUuid(); } }; +template<> struct TestValueFactory { + static QModelIndex *create() { return new QModelIndex(); } +}; template<> struct TestValueFactory { static QRegExp *create() { -- cgit v1.2.3