From b3bf89840b5e14e75b81efc1a838b36b59d71d71 Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Wed, 22 Oct 2025 20:28:20 +0200 Subject: [PATCH] Add GetPath() --- lib/utils/file-selection.cpp | 5 +++++ lib/utils/file-selection.hpp | 1 + 2 files changed, 6 insertions(+) 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);