From: vsv Date: Wed, 5 Sep 2018 15:05:47 +0000 (+0300) Subject: Show "not loaded" suffix for names of not loaded parts X-Git-Tag: V9_2_0a1~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b086551e5a4cdd28c5477abf168b7ec7ef433327;p=modules%2Fshaper.git Show "not loaded" suffix for names of not loaded parts --- diff --git a/src/PartSet/PartSet_TreeNodes.cpp b/src/PartSet/PartSet_TreeNodes.cpp index 81b3fec0f..771e0f42e 100644 --- a/src/PartSet/PartSet_TreeNodes.cpp +++ b/src/PartSet/PartSet_TreeNodes.cpp @@ -899,7 +899,14 @@ QVariant PartSet_PartRootNode::data(int theColumn, int theRole) const case 1: switch (theRole) { case Qt::DisplayRole: + { + ResultPartPtr aPartRes = getPartResult(myObject); + if (aPartRes.get()) { + if (aPartRes->partDoc().get() == NULL) + return QString(myObject->data()->name().c_str()) + " (Not loaded)"; + } return QString(myObject->data()->name().c_str()); + } case Qt::DecorationRole: return ModuleBase_IconFactory::get()->getIcon(myObject); }