Don't insert `(' when completing ambiguous symbols.

This commit is contained in:
Roberto Raggi
2009-03-17 14:46:35 +01:00
parent 937340cc5f
commit 437bbd00e5
4 changed files with 12 additions and 1 deletions

View File

@@ -1128,7 +1128,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item)
if (function->argumentCount() == 0) {
extraChars += QLatin1Char('<');
}
} else {
} else if (! function->isAmbiguous()) {
extraChars += QLatin1Char('(');
// If the function takes no arguments, automatically place the closing parenthesis