Android: Use FileUtils in AndroidDeployQtStep::createConfigWidget

Change-Id: Ib2ca0dbcdc811a6c130bf921845484b95039d076
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2021-08-17 15:01:16 +02:00
parent d119c717c1
commit 062006b07f
3 changed files with 8 additions and 8 deletions

View File

@@ -510,11 +510,11 @@ QWidget *AndroidDeployQtStep::createConfigWidget()
installCustomApkButton->setText(tr("Install an APK File"));
connect(installCustomApkButton, &QAbstractButton::clicked, this, [this, widget] {
const QString packagePath
= QFileDialog::getOpenFileName(widget,
tr("Qt Android Installer"),
QDir::homePath(),
tr("Android package (*.apk)"));
const FilePath packagePath
= FileUtils::getOpenFilePath(widget,
tr("Qt Android Installer"),
FileUtils::homePath(),
tr("Android package (*.apk)"));
if (!packagePath.isEmpty())
AndroidManager::installQASIPackage(target(), packagePath);
});