Gui: remove FC_TREEPARAM, add document for class TreeParams

This commit is contained in:
Zheng, Lei
2019-09-16 16:49:09 +08:00
committed by wmayer
parent 475baf5481
commit 959ec5dad3
4 changed files with 84 additions and 75 deletions

View File

@@ -62,7 +62,7 @@ void ActiveObjectList::setHighlight(const ObjectInfo &info, HighlightMode mode,
auto vp = dynamic_cast<ViewProviderDocumentObject*>(Application::Instance->getViewProvider(obj));
if(!vp) return;
if(FC_TREEPARAM(TreeActiveAutoExpand))
if(TreeParams::Instance()->TreeActiveAutoExpand())
vp->getDocument()->signalExpandObject(*vp,
enable?Gui::ExpandPath:Gui::CollapseItem, info.obj, info.subname.c_str());