Added collapse/expand option to the document tree view.
This commit is contained in:
@@ -713,8 +713,11 @@ void TreeWidget::slotActiveDocument(const Gui::Document& Doc)
|
||||
{
|
||||
QFont f = it->second->font(0);
|
||||
f.setBold(it == jt);
|
||||
it->second->setFont(0,f);
|
||||
it->second->setFont(0, f);
|
||||
it->second->setHidden(0 == displayMode && it != jt);
|
||||
if (2 == displayMode) {
|
||||
it->second->setExpanded(it == jt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user