QmlJS: Remove the strict separation of types and attached types.
The problem was that several lookup calls suddenly failed because the actual QML types were no longer in the default scope chain. However, the QML documentation says the type names are in the scope. Also, 'MyComponent.' in a JS-expression context only showed the attached properties of MyComponent and missed the enums. With this change completion now may offers too many options, but that's better than missing some. This reverts parts of 490f2797 Reviewed-by: Leandro Melo
Showing with 8 additions and 84 deletions