]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Add getDirectory() method to provide application-specific "Select directory" dialog box
authorvsr <vsr@opencascade.com>
Fri, 17 Jun 2005 13:59:56 +0000 (13:59 +0000)
committervsr <vsr@opencascade.com>
Fri, 17 Jun 2005 13:59:56 +0000 (13:59 +0000)
src/STD/STD_Application.cxx

index 0c5aa43968e6c255a154bf706bbc53b5d8542c37..ebde64c8496f8c991e9ea05938e4a42b302573c1 100755 (executable)
@@ -659,3 +659,10 @@ QString STD_Application::getFileName( bool open, const QString& initial, const Q
     return aName;
   }
 }
+
+QString STD_Application::getDirectory( const QString& initial, const QString& caption, QWidget* parent )
+{
+  if ( !parent )
+    parent = desktop();
+  return QFileDialog::getExistingDirectory( initial, parent, 0, caption, true );
+}