diff options
author | hjk <hjk@qt.io> | 2021-09-27 10:38:51 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-09-28 06:39:02 +0000 |
commit | 81acd0c62abeec7aca4457c0bc1636a44dbef2a1 (patch) | |
tree | 2c6568035f61e3656e459762dc49bf61a868f73f /src/plugins/qmljseditor | |
parent | 4b5aeb9a74c3e2bbdaafbdf7b11f356b90027f1e (diff) |
Utils: Remove uses of deprecated PathChooser::path()
There's filePath() nowadays.
Change-Id: Ief06bd07a69a287d6a5ca3c41eb7069dba869d52
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljscomponentnamedialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp b/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp index d70f7841c9e..7f972452710 100644 --- a/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp +++ b/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp @@ -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(); |