]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Show "not loaded" suffix for names of not loaded parts
authorvsv <vsv@opencascade.com>
Wed, 5 Sep 2018 15:05:47 +0000 (18:05 +0300)
committervsv <vsv@opencascade.com>
Wed, 5 Sep 2018 15:05:47 +0000 (18:05 +0300)
src/PartSet/PartSet_TreeNodes.cpp

index 81b3fec0f09faa72e9b6d8917b5d3d75c076bcc6..771e0f42e264323b4bed759ffcddc580cdd2279c 100644 (file)
@@ -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);
     }