qt5base-lts/tests/auto/corelib
Olivier Goffart b49327145e QMetaMethod::invoke: compare the QMetaType id of the return types
Since Qt5, the QMetaObject do not contains the string name of the
builtin types, but only the QMetaType id. QMetaMethod::typeName
convert back from the id to the string. But if the type is aliased,
the string of the main type is returned.

This was the case for example for qint64 which is transformed to
"qlonglong".

This causes a regression in QMetaType::invoke when trying to invoke a
method which return an aliased type, since the string comparison would
fail.

Fix the problem by also comparing the metatype id.

Changelog: QMetaMethod::invoke: Fix return of aliased meta type

Task-number: QTBUG-33222
Change-Id: Iec7b99dcbf7b23eb818de74f413e4451ce510ac4
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
2013-08-29 17:03:41 +02:00
..
animation Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
codecs Ensure that the user codecs are listed in QTextCodec::availableCodecs 2013-07-21 07:30:48 +02:00
global Make QFlags enum flags (C++11 strict enums) friendly 2013-05-09 12:17:59 +02:00
io Fix crash in QProcess::waitForStarted() on Unix. 2013-08-13 19:48:15 +02:00
itemmodels Make the QItemSelectionModel test widgets-independent. 2013-08-13 16:34:16 +02:00
json Fix crashes when invoking toVariant() on empty QJsonValue objects. 2013-07-24 10:56:07 +02:00
kernel QMetaMethod::invoke: compare the QMetaType id of the return types 2013-08-29 17:03:41 +02:00
mimetypes QMimeDatabase: Fix handling of duplicate mimetype definitions (2/2). 2013-08-03 14:44:12 +02:00
plugin tests: Make the QT assignments more explicit 2013-08-21 19:05:52 +02:00
statemachine Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
thread QThreadPool: Fix regression from Qt 4 in dealing with priority starts 2013-05-20 12:06:48 +02:00
tools Fix QPointF::division autotest 2013-08-19 14:24:28 +02:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00