]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Use SUIT_FileDlg instead of QFileDialog to selectg the file to import.
authoradv <adv@opencascade.com>
Fri, 6 Sep 2013 13:14:19 +0000 (13:14 +0000)
committeradv <adv@opencascade.com>
Fri, 6 Sep 2013 13:14:19 +0000 (13:14 +0000)
src/HYDROGUI/HYDROGUI_ImportBathymetryDlg.cxx

index 447a8132a6edf5eff211b05b96579b76595797fe..561cd419b66306bc2b1dcc86a5297cb5b9b88fec 100644 (file)
 
 #include "HYDROGUI_Tool.h"
 
+#include <SUIT_FileDlg.h>
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
 
-#include <QFileDialog>
 #include <QGroupBox>
 #include <QLabel>
 #include <QLayout>
@@ -116,7 +116,7 @@ QString HYDROGUI_ImportBathymetryDlg::getFileName() const
 void HYDROGUI_ImportBathymetryDlg::onBrowse()
 {
   QString aFilter( tr( "BATHYMETRY_FILTER" ) );
-  QString aFileName = QFileDialog::getOpenFileName( this, tr( "IMPORT_BATHYMETRY_FROM_FILE" ), "", aFilter );
+  QString aFileName = SUIT_FileDlg::getFileName( this, "", aFilter, tr( "IMPORT_BATHYMETRY_FROM_FILE" ), true );
 
   if( !aFileName.isEmpty() )
   {