X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_TreeNodes.cpp;h=c0400d6f74f356aa8abe83c655162f062a9b1b95;hb=47f4ee100cab87409534ba8b57e7c64582511fe3;hp=c63a5eb3a7fb4a7faec1681a457544a002a33d9b;hpb=52b0fdb3bbe3b4ca84519c9dd752f89a73bf6c05;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_TreeNodes.cpp b/src/PartSet/PartSet_TreeNodes.cpp index c63a5eb3a..c0400d6f7 100644 --- a/src/PartSet/PartSet_TreeNodes.cpp +++ b/src/PartSet/PartSet_TreeNodes.cpp @@ -40,6 +40,8 @@ #include #include +#include + #include #include @@ -129,6 +131,13 @@ QVariant PartSet_ObjectNode::data(int theColumn, int theRole) const else return QIcon(); } + case Qt::ForegroundRole: + if (myObject->groupName() == ModelAPI_Feature::group()) { + std::vector aColor = + Config_PropManager::color("Visualization", "feature_objectbrowser_color"); + return QColor(aColor[0], aColor[1], aColor[2]); + } + break; } return PartSet_TreeNode::data(theColumn, theRole); } @@ -1199,7 +1208,16 @@ QTreeNodesList PartSet_ObjectFolderNode::objectsDeleted(const DocumentPtr& /*the return aResult; } +QVariant PartSet_ObjectFolderNode::data(int theColumn, int theRole) const +{ + if (theRole == Qt::ForegroundRole) { + std::vector aColor = + Config_PropManager::color("Visualization", "feature_objectbrowser_color"); + return QColor(aColor[0], aColor[1], aColor[2]); + } + return PartSet_ObjectNode::data(theColumn, theRole); +} ////////////////////////////////////////////////////////////////////////////////// QVariant PartSet_StepNode::data(int theColumn, int theRole) const