OSDN Git Service

QmlOutline: Don't use LookupContext due to performance issues
authorKai Koehne <kai.koehne@nokia.com>
Fri, 22 Oct 2010 11:38:20 +0000 (13:38 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Fri, 22 Oct 2010 11:51:22 +0000 (13:51 +0200)
commitc7e47f53bc110f784014a4a1bcb24407612bfce7
tree4cbde917adfd09fe645f67d252742d7422ac110a
parent75e2d42448cddac361dc9e0fe644a2e9de124b3f
QmlOutline: Don't use LookupContext due to performance issues

Creating a LookupContext can be sloooow for large projects. We create
one instance for every update in the Outline to get the right icons.

Take a shortcut here and just use the element name directly, ignoring
packages names etc.

This is a hot fix for 2.1, a following patch will change the Icon
retrieval API accordingly.

Reviewed-by: Roberto Raggi
Task-number: QTCREATORBUG-2859
src/plugins/qmljseditor/qmloutlinemodel.cpp
src/plugins/qmljseditor/qmloutlinemodel.h