qmldump: Fix creation of objects from QDeclarativeTypes.
authorChristian Kamm <christian.d.kamm@nokia.com>
Thu, 14 Jul 2011 07:04:17 +0000 (09:04 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jul 2011 01:25:59 +0000 (03:25 +0200)
commit5d1eddc6cffe5f7e737b530ca8665a6181358c86
tree759b0b562cde520a0d2c792ff722d475a5f264a1
parent6ef9beba08a78f490fb9451f1a04bb9f153ec4fb
qmldump: Fix creation of objects from QDeclarativeTypes.

Previously, the import statement was not necessarily set up correctly
for the type we wanted to instantiate. We simply use
QDeclarativeType::create now and thus can skip finding the right import.

Mirrors qtcreator/f326bd067d455e979b5d83195e19581a9e2fd494
Mirrors qt4.8/bdbc3ff0a32bb37a32dc4825413e60f9d75e5007

Change-Id: Ic9e652b341854941c0e6a51f49f23dfaae4f87d7
Reviewed-on: http://codereview.qt.nokia.com/1648
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
tools/qmlplugindump/main.cpp