From: Alexey Khromov-Ext Date: Wed, 31 Jan 2024 13:31:27 +0000 (+0000) Subject: Patch tooltip X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1528e0629d2ba222b1e1785d40a1cb637d0de72e;p=modules%2Fgui.git Patch tooltip --- diff --git a/src/SalomeApp/SalomeApp_DataObject.cxx b/src/SalomeApp/SalomeApp_DataObject.cxx index fbc0d154f..465b1a705 100644 --- a/src/SalomeApp/SalomeApp_DataObject.cxx +++ b/src/SalomeApp/SalomeApp_DataObject.cxx @@ -296,6 +296,16 @@ QString SalomeApp_DataObject::toolTip( const int /*id*/ ) const return l.join("\n"); } } + else + { + _PTR(GenericAttribute) anAttr; + if ( myObject && myObject->FindAttribute( anAttr, "AttributeComment" ) ) + { + _PTR(AttributeComment) comm = anAttr; + std::string str = comm->Value(); + return fromUtf8(str); + } + } } }