Gui: split out TreeParams into its own source files

Auto generated using TreeParams.py
This commit is contained in:
Zheng, Lei
2022-11-22 22:26:44 +08:00
committed by Chris Hennes
parent 55f017f1dc
commit b141f8f491
9 changed files with 2159 additions and 178 deletions

View File

@@ -30,7 +30,7 @@
#include <Gui/ViewProviderDocumentObject.h>
#include "ActiveObjectList.h"
#include "Tree.h"
#include "TreeParams.h"
FC_LOG_LEVEL_INIT("MDIView", true, true)
@@ -66,7 +66,7 @@ void ActiveObjectList::setHighlight(const ObjectInfo &info, HighlightMode mode,
if (!vp)
return;
if (TreeParams::Instance()->TreeActiveAutoExpand()) {
if (TreeParams::getTreeActiveAutoExpand()) {
vp->getDocument()->signalExpandObject(*vp, enable ? TreeItemMode::ExpandPath : TreeItemMode::CollapseItem,
info.obj, info.subname.c_str());
}