Add GetPath()

This commit is contained in:
WarmUpTill 2025-10-22 20:28:20 +02:00 committed by WarmUpTill
parent 84f7d0d214
commit b3bf89840b
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);