QmlJS: Add warning if we use a Qt Quick 1 code model for Qt Quick 2

In some cases we use a Qt Quick 1 code model for a file with Qt Quick 2
imports. This patch adds a warning for this, since
auto completion is incomplete.

Change-Id: I60888fd269c02f38da097104f5ecc982dd65573a
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
QmlDesigner.Rewriter: Show error for wrong code model

If we use a QtQuick 1 code model for Qt Quick 2 an error is shown.

Task-number: QTCREATORBUG-10763
Task-number: QTCREATORBUG-10741
Change-Id: I43e824e12789d824d8e4c8f94725c7c4b0f178ec
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>