本文整理汇总了C++中MemberList::setNeedsSorting方法的典型用法代码示例。如果您正苦于以下问题:C++ MemberList::setNeedsSorting方法的具体用法?C++ MemberList::setNeedsSorting怎么用?C++ MemberList::setNeedsSorting使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MemberList
的用法示例。
在下文中一共展示了MemberList::setNeedsSorting方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sortMemberLists
void GroupDef::sortMemberLists()
{
MemberList *ml = m_memberLists.first();
while (ml)
{
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
ml = m_memberLists.next();
}
}
示例2: sortMemberLists
void GroupDef::sortMemberLists()
{
QListIterator<MemberList> mli(m_memberLists);
MemberList *ml;
for (;(ml=mli.current());++mli)
{
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
}
}
示例3: addMemberToList
void GroupDef::addMemberToList(MemberList::ListType lt,MemberDef *md)
{
static bool sortBriefDocs = Config_getBool("SORT_BRIEF_DOCS");
static bool sortMemberDocs = Config_getBool("SORT_MEMBER_DOCS");
MemberList *ml = createMemberList(lt);
ml->setNeedsSorting(
((ml->listType()&MemberList::declarationLists) && sortBriefDocs) ||
((ml->listType()&MemberList::documentationLists) && sortMemberDocs));
ml->append(md);
}
示例4: sortMemberLists
void NamespaceDef::sortMemberLists()
{
QListIterator<MemberList> mli(m_memberLists);
MemberList *ml;
for (mli.toFirst();(ml=mli.current());++mli)
{
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
}
if (classSDict)
{
classSDict->sort();
}
if (namespaceSDict)
{
namespaceSDict->sort();
}
}
示例5: addMemberToList
void NamespaceDef::addMemberToList(MemberListType lt,MemberDef *md)
{
static bool sortBriefDocs = Config_getBool("SORT_BRIEF_DOCS");
static bool sortMemberDocs = Config_getBool("SORT_MEMBER_DOCS");
MemberList *ml = createMemberList(lt);
ml->setNeedsSorting(
((ml->listType()&MemberListType_declarationLists) && sortBriefDocs) ||
((ml->listType()&MemberListType_documentationLists) && sortMemberDocs));
ml->append(md);
#if 0
if (ml->needsSorting())
ml->inSort(md);
else
ml->append(md);
#endif
if (ml->listType()&MemberListType_declarationLists) md->setSectionList(this,ml);
}