QmlJS: Remove ": " when completing components in namespaces.

So
import QtQuick 1.0 as Q
Q.Rec<complete> gives you Q.Rectangle instead of Q.Rectangle:

Change-Id: I42b05c7310e344fd93ed34a62aabe73a351866e3
Reviewed-on: http://codereview.qt.nokia.com/991
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
Christian Kamm
2011-07-01 08:51:55 +02:00
parent 715d5e9938
commit f8964ec4ef

View File

@@ -776,7 +776,9 @@ void QmlJSCompletionAssistProcessor::addCompletionsPropertyLhs(const QHash<QStri
it.next(); it.next();
QString itemText = it.key(); QString itemText = it.key();
QLatin1String postfix(": "); QString postfix;
if (!itemText.isEmpty() && itemText.at(0).isLower())
postfix = QLatin1String(": ");
if (afterOn) if (afterOn)
postfix = QLatin1String(" {"); postfix = QLatin1String(" {");
if (const Interpreter::QmlObjectValue *qmlValue = if (const Interpreter::QmlObjectValue *qmlValue =