Commit 2d35b9a7 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Added lists for indices to template context

parent b850eb45
This diff is collapsed.
...@@ -5080,4 +5080,28 @@ const ArgumentList *MemberDef::typeConstraints() const ...@@ -5080,4 +5080,28 @@ const ArgumentList *MemberDef::typeConstraints() const
return m_impl->typeConstraints; return m_impl->typeConstraints;
} }
bool MemberDef::isFriendToHide() const
{
static bool hideFriendCompounds = Config_getBool("HIDE_FRIEND_COMPOUNDS");
bool isFriendToHide = hideFriendCompounds &&
(m_impl->type=="friend class" ||
m_impl->type=="friend struct" ||
m_impl->type=="friend union");
return isFriendToHide;
}
bool MemberDef::isNotFriend() const
{
return !(isFriend() && isFriendToHide());
}
bool MemberDef::isFunctionOrSignalSlot() const
{
return isFunction() || isSlot() || isSignal();
}
bool MemberDef::isRelatedOrFriend() const
{
return isRelated() || isForeign() || isFriend() && !isFriendToHide();
}
...@@ -177,6 +177,12 @@ class MemberDef : public Definition ...@@ -177,6 +177,12 @@ class MemberDef : public Definition
bool showInCallGraph() const; bool showInCallGraph() const;
bool isStrongEnumValue() const; bool isStrongEnumValue() const;
// derived getters
bool isFriendToHide() const;
bool isNotFriend() const;
bool isFunctionOrSignalSlot() const;
bool isRelatedOrFriend() const;
// output info // output info
bool isLinkableInProject() const; bool isLinkableInProject() const;
bool isLinkable() const; bool isLinkable() const;
......
...@@ -1146,7 +1146,7 @@ class FilterAlphaIndex ...@@ -1146,7 +1146,7 @@ class FilterAlphaIndex
indexList = TemplateList::alloc(); indexList = TemplateList::alloc();
indexNode->set("letter", keyToLetter(elem->key)); indexNode->set("letter", keyToLetter(elem->key));
indexNode->set("label", keyToLabel(elem->key)); indexNode->set("label", keyToLabel(elem->key));
indexNode->set("classes",indexList); indexNode->set("items",indexList);
result->append(indexNode); result->append(indexNode);
letter=elem->key; letter=elem->key;
} }
......
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