Utils: Remove uses of deprecated PathChooser::path()

There's filePath() nowadays.

Change-Id: Ief06bd07a69a287d6a5ca3c41eb7069dba869d52
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-09-27 10:38:51 +02:00
parent 4b5aeb9a74
commit 81acd0c62a
4 changed files with 9 additions and 9 deletions

View File

@@ -168,7 +168,7 @@ QString ComponentNameDialog::isValid() const
if (!ui->pathEdit->isValid())
return tr("Invalid path.");
if (QDir(ui->pathEdit->path()).exists(compName + ".qml"))
if (ui->pathEdit->filePath().pathAppended(compName + ".qml").exists())
return tr("Component already exists.");
return QString();