/*!Constructor.*/
SalomeApp_Application::SalomeApp_Application()
- : LightApp_Application(), myNoteBook( 0 )
+ : LightApp_Application()
{
connect( desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ), Qt::UniqueConnection );
/*! Set SalomeApp_NoteBook pointer */
void SalomeApp_Application::setNoteBook( SalomeApp_NoteBook* theNoteBook )
{
- if ( myNoteBook && myNoteBook != theNoteBook )
- delete myNoteBook;
myNoteBook = theNoteBook;
}
#include "SALOMEDSClient.hxx"
+#include <QPointer>
+
class LightApp_Preferences;
class SalomeApp_Study;
class SalomeApp_NoteBook;
void createExtraActions();
private:
- SalomeApp_NoteBook* myNoteBook;
+ QPointer<SalomeApp_NoteBook> myNoteBook;
QMap<QString, QAction*> myExtActions; // Map <AttributeUserID, QAction>
signals: