summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/OverviewModel.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-08-26 16:16:22 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2010-08-26 16:16:22 +0200
commit05f2fd666902e7246b7110187d4964644291e26f (patch)
tree26184894891d998e8e88e8826e3c3425ec7a9244 /src/libs/cplusplus/OverviewModel.cpp
parent688d382ad947df8f4406d10846da0751839d61d1 (diff)
downloadqt-creator-05f2fd666902e7246b7110187d4964644291e26f.tar.gz
Renamed Symbol::scope() to Symbol::enclosingScope().
Diffstat (limited to 'src/libs/cplusplus/OverviewModel.cpp')
-rw-r--r--src/libs/cplusplus/OverviewModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/cplusplus/OverviewModel.cpp b/src/libs/cplusplus/OverviewModel.cpp
index a90c7f88ae..e2b1e58e69 100644
--- a/src/libs/cplusplus/OverviewModel.cpp
+++ b/src/libs/cplusplus/OverviewModel.cpp
@@ -90,10 +90,10 @@ QModelIndex OverviewModel::parent(const QModelIndex &child) const
if (!symbol) // account for no symbol item
return QModelIndex();
- if (Scope *scope = symbol->scope()) {
- if (scope->scope()) {
+ if (Scope *scope = symbol->enclosingScope()) {
+ if (scope->enclosingScope()) {
QModelIndex index;
- if (scope->scope() && scope->scope()->scope()) // the parent doesn't have a parent
+ if (scope->enclosingScope() && scope->enclosingScope()->enclosingScope()) // the parent doesn't have a parent
index = createIndex(scope->index(), 0, scope);
else //+1 to account for no symbol item
index = createIndex(scope->index() + 1, 0, scope);