forked from qt-creator/qt-creator
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:
@@ -776,7 +776,9 @@ void QmlJSCompletionAssistProcessor::addCompletionsPropertyLhs(const QHash<QStri
|
||||
it.next();
|
||||
|
||||
QString itemText = it.key();
|
||||
QLatin1String postfix(": ");
|
||||
QString postfix;
|
||||
if (!itemText.isEmpty() && itemText.at(0).isLower())
|
||||
postfix = QLatin1String(": ");
|
||||
if (afterOn)
|
||||
postfix = QLatin1String(" {");
|
||||
if (const Interpreter::QmlObjectValue *qmlValue =
|
||||
|
Reference in New Issue
Block a user