]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Patch tooltip patch_for_tooltip
authorAlexey Khromov-Ext <alexey.khromov-ext@hexagon.com>
Wed, 31 Jan 2024 13:31:27 +0000 (13:31 +0000)
committerAlexey Khromov-Ext <alexey.khromov-ext@hexagon.com>
Wed, 31 Jan 2024 13:31:27 +0000 (13:31 +0000)
src/SalomeApp/SalomeApp_DataObject.cxx

index fbc0d154f95653162f8b86ebc4a78d7876de1b1b..465b1a7058a876174dc7a20c12612d125b8dcfc3 100644 (file)
@@ -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);
+        }        
+      }
     }
   }