CppTools: Replace Method with Function

Change-Id: I6405c4dfa07eba1ea09ba23fe20667769eaca748
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Orgad Shaneh
2014-03-29 21:13:26 +03:00
committed by Orgad Shaneh
parent edddfba98a
commit 530332c255
6 changed files with 8 additions and 8 deletions

View File

@@ -97,7 +97,7 @@ bool SearchSymbols::visit(Function *symbol)
return false;
QString name = symbolName(symbol);
QString type = overview.prettyType(symbol->type());
appendItem(name, type, _scope, ModelItemInfo::Method, symbol);
appendItem(name, type, _scope, ModelItemInfo::Function, symbol);
return false;
}
@@ -130,7 +130,7 @@ bool SearchSymbols::visit(Declaration *symbol)
QString name = symbolName(symbol);
QString type = overview.prettyType(symbol->type());
appendItem(name, type, _scope,
symbol->type()->asFunctionType() ? ModelItemInfo::Method
symbol->type()->asFunctionType() ? ModelItemInfo::Function
: ModelItemInfo::Declaration,
symbol);
return false;