From 1528e0629d2ba222b1e1785d40a1cb637d0de72e Mon Sep 17 00:00:00 2001 From: Alexey Khromov-Ext Date: Wed, 31 Jan 2024 13:31:27 +0000 Subject: [PATCH] Patch tooltip --- src/SalomeApp/SalomeApp_DataObject.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); + } + } } } -- 2.39.2