Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8dab923f authored by David Nolden's avatar David Nolden

Adapt to changes in kdevplatform

parent 15565f77
......@@ -130,8 +130,8 @@ Declaration* localClassFromCodeContext(DUContext* context)
//Since declarations are assigned to the bodies, not to the argument contexts, go to the body context to make the step to the function
if(context->type() == DUContext::Function)
if(!context->importedChildContexts().isEmpty())
context = context->importedChildContexts().first();
if(!context->importers().isEmpty())
context = context->importers().first();
///Step 1: Find the function-declaration for the function we are in
Declaration* functionDeclaration = 0;
......
......@@ -794,7 +794,7 @@ public:
if(duchain) {
const Cpp::EnvironmentFile* f = dynamic_cast<const Cpp::EnvironmentFile*>(duchain->parsingEnvironmentFile().data());
Q_ASSERT(f); //Should always be for c++
m_currentText += QString("%1: %2 %3: %4 %5: %6").arg(labelHighlight(i18nc("Headers included into this header", "Included"))).arg(duchain->importedParentContexts().count()).arg(i18nc("Count of files this header was included into", "Included by")).arg(duchain->importedChildContexts().count()).arg(i18nc("Count of macros defined in this header", "Defined macros")).arg(f->definedMacros().set().count());
m_currentText += QString("%1: %2 %3: %4 %5: %6").arg(labelHighlight(i18nc("Headers included into this header", "Included"))).arg(duchain->importedParentContexts().count()).arg(i18nc("Count of files this header was included into", "Included by")).arg(duchain->importers().count()).arg(i18nc("Count of macros defined in this header", "Defined macros")).arg(f->definedMacros().set().count());
m_currentText += "<br />";
if(!shorten) {
m_currentText += labelHighlight(i18n("Declarations:")) + "<br />";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment