From b6a5306951dda4ea5a0733561285e7ad7d1706f6 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 17 Jun 2005 13:59:56 +0000 Subject: [PATCH] Add getDirectory() method to provide application-specific "Select directory" dialog box --- src/STD/STD_Application.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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 ); +} -- 2.39.2