]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #685: Replace Prefix by Suffix
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 10 Sep 2015 14:58:14 +0000 (17:58 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 10 Sep 2015 14:58:25 +0000 (17:58 +0300)
src/XGUI/XGUI_DataModel.cpp

index c6ccd9e92f96257856fbf9f11c652cf4c2a94f0a..157c9ed767b82bc8c474735eb6ffee0572928f1d 100644 (file)
@@ -397,15 +397,15 @@ QVariant XGUI_DataModel::data(const QModelIndex& theIndex, int theRole) const
             QString aTitle = QString(aObj->data()->name().c_str());
             return aTitle + " = " + aVal;
           }
-          QString aPrefix;
+          QString aSuffix;
           if (aObj->groupName() == myXMLReader.subType()) {
             ResultPartPtr aPartRes = getPartResult(aObj);
             if (aPartRes.get()) {
               if (aPartRes->partDoc().get() == NULL)
-                aPrefix = "Not loaded ";
+                aSuffix = " (Not loaded)";
             }
           }
-          return aPrefix + aObj->data()->name().c_str();
+          return aObj->data()->name().c_str() + aSuffix;
         }
       case Qt::DecorationRole:
         return ModuleBase_IconFactory::get()->getIcon(object(theIndex));