diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-26 16:16:22 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-26 16:16:22 +0200 |
commit | 05f2fd666902e7246b7110187d4964644291e26f (patch) | |
tree | 26184894891d998e8e88e8826e3c3425ec7a9244 /src/libs/cplusplus/OverviewModel.cpp | |
parent | 688d382ad947df8f4406d10846da0751839d61d1 (diff) | |
download | qt-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.cpp | 6 |
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); |