Salome HOME
Creation of objects pointers.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataObject.cxx
index cc62a54a38a1aa759bca0bbc2c597613f23e6ebf..a259a866e83a88b6078527673b852c0e1d089a07 100644 (file)
@@ -244,7 +244,7 @@ QString HYDROGUI_NamedObject::entry() const
 
 QString HYDROGUI_NamedObject::name() const
 {
-  return myName;
+  return myName.toUpper();
 }
 
 QPixmap HYDROGUI_NamedObject::icon( const int theId ) const
@@ -257,6 +257,19 @@ QPixmap HYDROGUI_NamedObject::icon( const int theId ) const
   return LightApp_DataObject::icon( theId );
 }
 
+QFont HYDROGUI_NamedObject::font( const int theId ) const
+{
+  QFont aFont = LightApp_DataObject::font( theId );
+  if( theId == NameId )
+  {
+  if ( dynamic_cast<CAM_ModuleObject*>( parent() ) )
+    {
+      aFont.setBold( true );
+    }
+  }
+  return aFont;
+}
+
 HYDROGUI_DropTargetObject::HYDROGUI_DropTargetObject( SUIT_DataObject* theParent,
                                             const QString&   theName,
                                             const QString&   theParentEntry,