From: vsr Date: Fri, 17 Jun 2005 13:59:56 +0000 (+0000) Subject: Add getDirectory() method to provide application-specific "Select directory" dialog box X-Git-Tag: T3_0_0_a4~78 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6a5306951dda4ea5a0733561285e7ad7d1706f6;p=modules%2Fgui.git Add getDirectory() method to provide application-specific "Select directory" dialog box --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 0c5aa4396..ebde64c84 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -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 ); +}