aTitle += QString( " - [%1]" ).arg( sName );
}
+ QStringList anInfoList;
+ modules( anInfoList, false );
+
+ LightApp_Module* aModule = ( LightApp_Module* )activeModule();
+ if( aModule && anInfoList.count() == 1 ) // to avoid a conflict between different modules
+ aTitle = aModule->updateDesktopTitle( aTitle );
+
desktop()->setCaption( aTitle );
}
if( id!=-1 )
startOperation( id );
}
+
+/*!
+ * \brief Virtual public method called to custom update of the desktop title
+ * \param theTitle - current desktop title
+ * \return Modified desktop title
+*/
+QString LightApp_Module::updateDesktopTitle( const QString& theTitle )
+{
+ return theTitle;
+}
virtual LightApp_Displayer* displayer();
+ virtual QString updateDesktopTitle( const QString& );
+ // Custom update desktop title
+
public slots:
virtual bool activateModule( SUIT_Study* );
virtual bool deactivateModule( SUIT_Study* );