--- mess
This commit is contained in:
@@ -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) };
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user