summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/searchsymbols.h
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2008-12-05 16:40:19 +0100
committerhjk <qtc-committer@nokia.com>2008-12-05 16:40:19 +0100
commit84261f00ea94a0c0a556043afd7b66b9d4feb874 (patch)
treef9ed25fb3ac9de6db59592becf3a116f1fbdda19 /src/plugins/cpptools/searchsymbols.h
parent0e8d02aab400f4cec14c29026350248d346874c1 (diff)
parent1b33b75fc3441d668d1b25e5a3110eee8f9015ec (diff)
downloadqt-creator-84261f00ea94a0c0a556043afd7b66b9d4feb874.tar.gz
Merge branch '0.9.1-beta' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.1-beta
Diffstat (limited to 'src/plugins/cpptools/searchsymbols.h')
-rw-r--r--src/plugins/cpptools/searchsymbols.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/cpptools/searchsymbols.h b/src/plugins/cpptools/searchsymbols.h
index 1fe276b6be..4997e5cf04 100644
--- a/src/plugins/cpptools/searchsymbols.h
+++ b/src/plugins/cpptools/searchsymbols.h
@@ -92,6 +92,7 @@ public:
SearchSymbols();
void setSymbolsToSearchFor(SymbolTypes types);
+ void setSeparateScope(bool separateScope);
QList<ModelItemInfo> operator()(CPlusPlus::Document::Ptr doc)
{ return operator()(doc, QString()); }
@@ -113,14 +114,27 @@ protected:
virtual bool visit(CPlusPlus::Declaration *symbol);
#endif
virtual bool visit(CPlusPlus::Class *symbol);
+
+ QString scopedSymbolName(const QString &symbolName) const;
+ QString scopedSymbolName(const CPlusPlus::Symbol *symbol) const;
QString symbolName(const CPlusPlus::Symbol *symbol) const;
+ void appendItem(const QString &name,
+ const QString &info,
+ ModelItemInfo::ItemType type,
+ const CPlusPlus::Symbol *symbol);
private:
+ QString findOrInsert(const QString &s)
+ { return *strings.insert(s); }
+
+ QSet<QString> strings; // Used to avoid QString duplication
+
QString _scope;
CPlusPlus::Overview overview;
CPlusPlus::Icons icons;
QList<ModelItemInfo> items;
SymbolTypes symbolsToSearchFor;
+ bool separateScope;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(SearchSymbols::SymbolTypes)