Go to file
Kent Hansen 00c8984b4e moc: Use QMetaType::QVariant as the type for QVariant
QMetaType::QVariant has existed as a proper type for almost two
years, but the qvariant_nameToType function was written in 2006.

Using QMetaType::QVariant means QVariant can be treated just like
any other type. We can get rid of those hacky checks for LastType,
and the remaining checks become more readable.

The fact that QMetaProperty::{type,userType}() returned LastType
(0xffffffff) for QVariants was never documented (LastType itself is
internal). But there are other Qt modules that assume so. I'll fix
the ones I know about (qtdeclarative, qtscript, activeqt).

Change-Id: I799b9079bb8bbb1fe76c132525440b30415cbac5
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-01-25 08:46:40 +01:00
bin Fixed qtmodule-configtests on Windows. 2012-01-23 11:02:18 +01:00
config.tests Remove support for the MNG file format and the bundled libmng 2012-01-25 02:22:18 +01:00
dist Make coordinates float based where it makes sense. 2012-01-25 02:23:25 +01:00
doc/src Remove support for the MNG file format and the bundled libmng 2012-01-25 02:22:18 +01:00
examples Remove support for the MNG file format and the bundled libmng 2012-01-25 02:22:18 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Add Native Client port mkspecs. 2012-01-25 03:48:14 +01:00
qmake Update contact information in license headers. 2012-01-23 04:04:33 +01:00
src moc: Use QMetaType::QVariant as the type for QVariant 2012-01-25 08:46:40 +01:00
tests moc: Use QMetaType::QVariant as the type for QVariant 2012-01-25 08:46:40 +01:00
tools Remove support for the MNG file format and the bundled libmng 2012-01-25 02:22:18 +01:00
util Remove Symbian / S60 code from util. 2012-01-24 01:09:22 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Remove support for the MNG file format and the bundled libmng 2012-01-25 02:22:18 +01:00
configure.exe Add a new QT_NO_SSL feature macro. 2012-01-06 11:19:23 +01:00
header.BSD Update contact information in license headers. 2012-01-23 04:04:33 +01:00
header.FDL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
header.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
header.LGPL-ONLY Update obsolete contact address. 2012-01-23 04:04:33 +01:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Remove support for the MNG file format and the bundled libmng 2012-01-25 02:22:18 +01:00
sync.profile Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00