qt5base-lts/tests/auto/corelib
Olivier Goffart a3a7d485fa Fix crash in QMetaProperty::write for custom types and conversion
if t >= QMetaType::User, we would not return false nor call convert.
We would then pass a pointer to whatever is in the QVariant to the
qt_metacall that is expecting a pointer to an object of a different type.

Since we have custom converters, we can call QVarent::convert even for
custom types anyway.

[ChangeLog][QtCore] Fixed crash when setting a QVariant of a different
type to a property of a custom type. Attempt to do a conversion instead.

Task-number: QTBUG-40644
Change-Id: Ib6fbd7e7ddcf25c5ee247ea04177e079f6d7de35
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
2015-10-09 07:59:07 +00:00
..
animation Extend tst_QPauseAnimation::pauseAndPropertyAnimations blacklist 2015-06-20 15:25:58 +00:00
codecs fix usage of wince scope 2015-06-05 10:29:10 +00:00
global Skip tst_QNumeric::addOverflow() for MSVC2015. 2015-09-30 04:28:39 +00:00
io Improve tst_qfile. 2015-09-30 17:28:49 +00:00
itemmodels Clean unused parameter warning from QItemSelectionModel test 2015-09-30 06:36:21 +00:00
json Make sure remove() doesn't corrupt the json object 2015-03-18 07:34:59 +00:00
kernel Fix crash in QMetaProperty::write for custom types and conversion 2015-10-09 07:59:07 +00:00
mimetypes Merge remote-tracking branch 'origin/5.5' into 5.6 2015-10-02 16:59:55 +02:00
plugin Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
statemachine QStateMachine: add defaultTransition in QHistoryState 2015-07-23 13:29:46 +00:00
thread Initialize QFutureWatcherBasePrivate::finished and test 2015-09-30 08:25:34 +00:00
tools tst_qversionnumber: enable c++11 and don't use core-private 2015-10-07 19:03:12 +00:00
xml Update copyright headers 2015-02-11 06:49:51 +00:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00