This commit is contained in:
Christoph Holzheuer
2025-09-08 15:42:15 +02:00
parent 05bc5ad5d9
commit 95b7b026ff
8 changed files with 124 additions and 77 deletions

View File

@@ -179,7 +179,6 @@ int XQSectionManager::lastRow(const XQModelSection& section ) const
XQSectionRange XQSectionManager::sectionRange(const XQModelSection& section ) const
{
qDebug() << " ---- Section RANGE: " << section.startIndex().row() << " -> " << lastRow(section);
return XQSectionRange{ section.startIndex().row(), lastRow(section) };
}

View File

@@ -193,15 +193,9 @@ void XQViewModel::toggleSection( const XQModelSection& section )
{
if( section.isValid() && _treeTable )
{
qDebug() << " --- toggleSection: " << section.contentType();
XQSectionRange pos = _sections.sectionRange(section);
_treeTable->toggleRowsHidden(pos.firstRow, pos.lastRow );
// hier nicht!?
//emit sectionToggled(section);
}
else
{
qDebug() << " --- toggleSection: FAIL!";
emit sectionToggled(section);
}
}