diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-07-31 16:03:48 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-07-31 16:03:48 +0200 |
commit | 4a0da2c6f2663d9469bfd929fa682b6df7d42ab7 (patch) | |
tree | d8fb1fbbeacaadad06024ecd5ce8e84c8f30d547 /src/libs/cplusplus/OverviewModel.cpp | |
parent | b713f1772a4de8330bcdd96a00b9cf103541e008 (diff) | |
download | qt-creator-4a0da2c6f2663d9469bfd929fa682b6df7d42ab7.tar.gz |
Added Semantic checks for ObjC methods.
Diffstat (limited to 'src/libs/cplusplus/OverviewModel.cpp')
-rw-r--r-- | src/libs/cplusplus/OverviewModel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/cplusplus/OverviewModel.cpp b/src/libs/cplusplus/OverviewModel.cpp index 008fb97abe..ed119824af 100644 --- a/src/libs/cplusplus/OverviewModel.cpp +++ b/src/libs/cplusplus/OverviewModel.cpp @@ -164,6 +164,12 @@ QVariant OverviewModel::data(const QModelIndex &index, int role) const QString name = _overview.prettyName(symbol->name()); if (name.isEmpty()) name = QLatin1String("anonymous"); + if (symbol->isObjCForwardClassDeclaration()) + name = QLatin1String("@class ") + name; + if (symbol->isObjCForwardProtocolDeclaration() || symbol->isObjCProtocol()) + name = QLatin1String("@protocol ") + name; + if (symbol->isObjCClass()) + name = QLatin1String("@interface ") + name; if (! symbol->isScopedSymbol() || symbol->isFunction()) { QString type = _overview.prettyType(symbol->type()); if (! type.isEmpty()) { |