diff --git a/lib/utils/file-selection.cpp b/lib/utils/file-selection.cpp index ba88430c..8ae75734 100644 --- a/lib/utils/file-selection.cpp +++ b/lib/utils/file-selection.cpp @@ -35,6 +35,11 @@ void FileSelection::SetPath(const QString &path) _filePath->setText(path); } +QString FileSelection::GetPath() const +{ + return _filePath->text(); +} + QString FileSelection::ValidPathOrDesktop(const QString &path) { QFileInfo fileInfo(path); diff --git a/lib/utils/file-selection.hpp b/lib/utils/file-selection.hpp index de273023..28bc01a6 100644 --- a/lib/utils/file-selection.hpp +++ b/lib/utils/file-selection.hpp @@ -22,6 +22,7 @@ public: QWidget *parent = 0); EXPORT void SetPath(const StringVariable &); EXPORT void SetPath(const QString &); + EXPORT QString GetPath() const; EXPORT QPushButton *Button() { return _browseButton; } EXPORT static QString ValidPathOrDesktop(const QString &path);