]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To handle close event
authorapo <apo@opencascade.com>
Wed, 5 Oct 2005 06:44:27 +0000 (06:44 +0000)
committerapo <apo@opencascade.com>
Wed, 5 Oct 2005 06:44:27 +0000 (06:44 +0000)
src/SVTK/SVTK_CubeAxesDlg.cxx
src/SVTK/SVTK_CubeAxesDlg.h
src/SVTK/SVTK_NonIsometricDlg.cxx
src/SVTK/SVTK_NonIsometricDlg.h

index 72552c6ba93ede0a071e11494e8e7114892c16ae..ea959790e112515b3487d2506b06fd88abfd9ee3 100644 (file)
@@ -564,3 +564,8 @@ void SVTK_CubeAxesDlg::onClose()
 
   myAction->setOn( false );
 }
+
+void SVTK_CubeAxesDlg::closeEvent( QCloseEvent* )
+{
+  myAction->setOn( false );
+}
index dc089f6031ddd177784ff4259ef1af5f07d68a72..dc838217b143948fdde82eda4b1a49dd023b649c 100644 (file)
@@ -63,6 +63,9 @@ public:
 
   void            Update();
 
+protected:
+  virtual void    closeEvent( QCloseEvent* );
+
 private slots:
   void            onOk();
   bool            onApply();
index e035387e5f464e0605e2e61c252ac455d0cc0b80..82c91d45f918e15ac1ceabf13a15c7e95d3186d3 100644 (file)
@@ -192,3 +192,10 @@ SVTK_NonIsometricDlg
 
   m_Action->setOn( false );
 }
+
+void 
+SVTK_NonIsometricDlg
+::closeEvent( QCloseEvent* )
+{
+  m_Action->setOn( false );
+}
index 4662f6b92ad955a0a54c93854cd8b71437725c8a..1b1105ec2f26ea55a916949f75fe5679a634da4c 100644 (file)
@@ -53,6 +53,8 @@ public:
   void Update();
 
 protected:
+  virtual void closeEvent( QCloseEvent* );
+
   SVTK_MainWindow *m_MainWindow;
   QtxAction* m_Action;