void Qhp::addContentsItem(bool /*isDir*/, const char * name, const char * /*ref*/, const char * file, const char * /*anchor*/) { // Backup difference before modification int diff = m_prevSectionLevel - m_sectionLevel; handlePrevSection(); setPrevSection(name, file, m_sectionLevel); // Close sections as needed for (; diff > 0; diff--) { m_toc.close("section"); } }
void Qhp::addContentsItem(bool /*isDir*/, const char * name, const char * /*ref*/, const char * file, const char *anchor, bool /* separateIndex */, bool /* addToNavIndex */, Definition * /*def*/) { //printf("Qhp::addContentsItem(%s) %d\n",name,m_sectionLevel); // Backup difference before modification QCString f = file; if (!f.isEmpty() && f.at(0)=='^') return; // absolute URL not supported int diff = m_prevSectionLevel - m_sectionLevel; handlePrevSection(); setPrevSection(name, f, anchor, m_sectionLevel); // Close sections as needed //printf("Qhp::addContentsItem() closing %d sections\n",diff); for (; diff > 0; diff--) { m_toc.close("section"); } }