forked from qt-creator/qt-creator
Renamed Symbol::identity() to Symbol::unqualifiedName().
This commit is contained in:
@@ -151,7 +151,7 @@ public:
|
||||
|
||||
TextEditor::CompletionItem previousItem = switchCompletionItem(0);
|
||||
Symbol *previousSymbol = switchSymbol(symbol);
|
||||
accept(symbol->identity());
|
||||
accept(symbol->unqualifiedName());
|
||||
if (_item.isValid())
|
||||
_item.data = QVariant::fromValue(symbol);
|
||||
(void) switchSymbol(previousSymbol);
|
||||
@@ -1849,7 +1849,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item, QChar t
|
||||
if (Function *function = symbol->type()->asFunctionType()) {
|
||||
// If the member is a function, automatically place the opening parenthesis,
|
||||
// except when it might take template parameters.
|
||||
if (! function->hasReturnType() && (function->identity() && !function->identity()->isDestructorNameId())) {
|
||||
if (! function->hasReturnType() && (function->unqualifiedName() && !function->unqualifiedName()->isDestructorNameId())) {
|
||||
// Don't insert any magic, since the user might have just wanted to select the class
|
||||
|
||||
/// ### port me
|
||||
|
||||
@@ -114,7 +114,7 @@ bool SearchSymbols::visit(Function *symbol)
|
||||
QString name = symbolName(symbol);
|
||||
QString scopedName = scopedSymbolName(name);
|
||||
QString type = overview.prettyType(symbol->type(),
|
||||
separateScope ? symbol->identity() : 0);
|
||||
separateScope ? symbol->unqualifiedName() : 0);
|
||||
appendItem(separateScope ? type : scopedName,
|
||||
separateScope ? fullScope : type,
|
||||
ModelItemInfo::Method, symbol);
|
||||
@@ -140,7 +140,7 @@ bool SearchSymbols::visit(Declaration *symbol)
|
||||
QString name = symbolName(symbol);
|
||||
QString scopedName = scopedSymbolName(name);
|
||||
QString type = overview.prettyType(symbol->type(),
|
||||
separateScope ? symbol->identity() : 0);
|
||||
separateScope ? symbol->unqualifiedName() : 0);
|
||||
appendItem(separateScope ? type : scopedName,
|
||||
separateScope ? _scope : type,
|
||||
ModelItemInfo::Declaration, symbol);
|
||||
|
||||
Reference in New Issue
Block a user