]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL19371 : Qt4 porting: impossible to start record in gauss viewer
authorouv <ouv@opencascade.com>
Wed, 26 Mar 2008 09:44:21 +0000 (09:44 +0000)
committerouv <ouv@opencascade.com>
Wed, 26 Mar 2008 09:44:21 +0000 (09:44 +0000)
src/VVTK/VVTK_RecorderDlg.cxx
src/VVTK/VVTK_RecorderDlg.h

index 93f7bd41f27b2c9e275c6b265f08810ae3415ac6..9a88449296b4782b0a7f3d9d3c8020962f66a1f0 100644 (file)
@@ -145,12 +145,6 @@ VVTK_RecorderDlg::~VVTK_RecorderDlg()
 {
 }
 
-void VVTK_RecorderDlg::show()
-{
-  if( onBrowseFile() )
-    QWidget::show();
-}
-
 void VVTK_RecorderDlg::onStart()
 {
   if( myFileName.isNull() )
@@ -211,6 +205,16 @@ bool VVTK_RecorderDlg::onBrowseFile()
   return true;
 }
 
+int VVTK_RecorderDlg::exec()
+{
+  if( !onBrowseFile() )
+  {
+    reject();
+    return 0;
+  }
+  return QDialog::exec();
+}
+
 void VVTK_RecorderDlg::keyPressEvent( QKeyEvent* e )
 {
   QDialog::keyPressEvent( e );
index 34a19d37cb06f71aa4cd0a13e9bfef73e88a46b7..9a4c9b3b25fd57b6f9df773ac1136d756f36a4d6 100644 (file)
@@ -54,12 +54,12 @@ public:
   VVTK_RecorderDlg( QWidget*, VVTK_Recorder* );
   ~VVTK_RecorderDlg();
 
-  virtual void     show();
+  int              exec();
 
   QString          fileName() const { return myFileName; }
 
 private:
-  void             keyPressEvent( QKeyEvent* e );
+  virtual void     keyPressEvent( QKeyEvent* );
 
 protected slots:
   void             onStart();