Use the new file dialog wrappers in some places

Change-Id: I326c883f2f76593e6fcb0f3e376d387273312982
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-07-26 17:41:28 +02:00
parent ef1653698e
commit b8f369c436
5 changed files with 34 additions and 44 deletions

View File

@@ -239,12 +239,11 @@ QString FileExtractor::targetPath() const
void FileExtractor::browse()
{
const QString path = QFileDialog::getExistingDirectory(Core::ICore::dialogParent(),
(tr("Choose Directory")),
m_targetPath.toString());
const Utils::FilePath path =
Utils::FileUtils::getExistingDirectory(tr("Choose Directory"), m_targetPath);
if (!path.isEmpty())
m_targetPath = Utils::FilePath::fromString(path);
m_targetPath = path;
emit targetPathChanged();
emit targetFolderExistsChanged();