diff options
| author | Roberto Raggi <qtc-committer@nokia.com> | 2009-02-09 17:44:06 +0100 |
|---|---|---|
| committer | Roberto Raggi <qtc-committer@nokia.com> | 2009-02-09 17:49:12 +0100 |
| commit | d01795d9334a96f0ae3f2b19b689fe9abd7fdf34 (patch) | |
| tree | 79e782f3e7a3797750e9e37cf26106f322426e8a /src/plugins/cppeditor/cpphoverhandler.cpp | |
| parent | ce22a96041ed7a61b09ea9596f415d30d67e68f1 (diff) | |
| download | qt-creator-d01795d9334a96f0ae3f2b19b689fe9abd7fdf34.tar.gz | |
Reimplemented Type::as*Type() using virtual methods.
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
| -rw-r--r-- | src/plugins/cppeditor/cpphoverhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index b814ed291a..3959d953f9 100644 --- a/src/plugins/cppeditor/cpphoverhandler.cpp +++ b/src/plugins/cppeditor/cpphoverhandler.cpp @@ -147,13 +147,13 @@ static QString buildHelpId(const FullySpecifiedType &type, Name *name = 0; Scope *scope = 0; - if (const Function *f = type->asFunction()) { + if (const Function *f = type->asFunctionType()) { name = f->name(); scope = f->scope(); - } else if (const Class *c = type->asClass()) { + } else if (const Class *c = type->asClassType()) { name = c->name(); scope = c->scope(); - } else if (const Enum *e = type->asEnum()) { + } else if (const Enum *e = type->asEnumType()) { name = e->name(); scope = e->scope(); } else if (const NamedType *t = type->asNamedType()) { @@ -270,7 +270,7 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in m_helpId = buildHelpId(docType, symbol); QString displayName = buildHelpId(firstType, symbol); - if (!firstType->isClass() && !firstType->isNamedType()) { + if (!firstType->isClassType() && !firstType->isNamedType()) { Overview overview; overview.setShowArgumentNames(true); overview.setShowReturnTypes(true); |
