OSDN Git Service

QuickDesigner: Automatically use alias of namespace in Rewriter
authorKai Koehne <kai.koehne@nokia.com>
Thu, 10 Jun 2010 11:36:45 +0000 (13:36 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Thu, 10 Jun 2010 13:15:31 +0000 (15:15 +0200)
commit2fa6d31ab4dcbbba52797a8b31a483393ce1a7be
treea1382169b1974f77d76fc4c823384805af5116e5
parent644f98483a9bbf6dfd16af9563523c2a59b23c04
QuickDesigner: Automatically use alias of namespace in Rewriter

E.g. if the type of the node is 'Qt/Image', version 4, 6, search through
the list of imports to find 'Qt'. If an alias for the namespace has been
defined, prepend this to the element name.

Reviewed-by: Erik Verbruggen
src/plugins/qmldesigner/designercore/model/qmltextgenerator.cpp