Gui: fix active object highlight

This commit is contained in:
Zheng, Lei
2019-09-03 18:28:00 +08:00
committed by wmayer
parent aa2acd9d6f
commit 0936ebd3c9
2 changed files with 2 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ namespace Gui
return dynamic_cast<_T>(getObject(it->second,true,parent,subname));
}
void setObject(App::DocumentObject*, const char*, const char *subname=0,
const Gui::HighlightMode& m = Gui::LightBlue);
const Gui::HighlightMode& m = Gui::UserDefined);
bool hasObject(const char*)const;
void objectDeleted(const ViewProviderDocumentObject& viewProviderIn);
bool hasObject(App::DocumentObject *obj, const char *, const char *subname=0) const;

View File

@@ -4407,6 +4407,7 @@ void DocumentObjectItem::setHighlight(bool set, Gui::HighlightMode high) {
default:
break;
}
this->setFont(0,f);
}
const char *DocumentObjectItem::getTreeName() const {