Lines Matching refs:parentSection
135 QgsAbstractReportSection *parentSection = sectionForIndex( parent ); in rowCount() local
136 return parentSection ? parentSection->childCount() : 0; in rowCount()
144 QgsAbstractReportSection *parentSection = sectionForIndex( parent ); in hasChildren() local
145 return parentSection && parentSection->childCount() > 0; in hasChildren()
158 QgsAbstractReportSection *parentSection = sectionForIndex( parent ); in index() local
159 if ( parentSection ) in index()
161 QgsAbstractReportSection *item = parentSection->childSections().value( row, nullptr ); in index()
179 QgsAbstractReportSection *parentSection = childSection->parentSection(); in parent() local
181 if ( !parentSection ) in parent()
184 … return createIndex( parentSection->row(), 0, parentSection != mReport ? parentSection : nullptr ); in parent()
243 QgsAbstractReportSection *parentSection = sectionForIndex( parent ); in removeRows() local
245 if ( row < 0 || row >= parentSection->childCount() ) in removeRows()
252 if ( row < parentSection->childCount() ) in removeRows()
254 parentSection->removeChildAt( row ); in removeRows()
265 QgsAbstractReportSection *parentSection = sectionForIndex( parent ); in addSection() local
266 if ( !parentSection ) in addSection()
267 parentSection = mReport; in addSection()
269 beginInsertRows( parent, parentSection->childCount(), parentSection->childCount() ); in addSection()
270 parentSection->appendChild( section.release() ); in addSection()