From: vsv Date: Thu, 10 Sep 2015 14:58:14 +0000 (+0300) Subject: Issue #685: Replace Prefix by Suffix X-Git-Tag: V_1.4.0_beta4~31^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db75e16487c19757a1bbd894ee18b46218c4ff0c;p=modules%2Fshaper.git Issue #685: Replace Prefix by Suffix --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index c6ccd9e92..157c9ed76 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -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));