QString HYDROGUI_NamedObject::name() const
{
- return myName;
+ return myName.toUpper();
}
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,
*/
virtual QString name() const;
+ /**
+ * Returns the font of displayed object name.
+ */
+ virtual QFont font( const int = SUIT_DataObject::NameId ) const;
+
/**
* Returns the object icon.
*/