diff options
author | hjk <hjk@qt.io> | 2022-09-02 15:18:48 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-09-06 08:17:34 +0000 |
commit | aeb460286cb56f65bba2367d39861138a87d0f1b (patch) | |
tree | dea13378cb02655efcde3399c5d236d3851b1e14 | |
parent | a42ff26d4a494a49f8b67d82fa68988eb71c67c2 (diff) | |
download | qt-creator-aeb460286cb56f65bba2367d39861138a87d0f1b.tar.gz |
CMake: Replace PathChooser::path() uses by filePath()
Change-Id: Id375c83d7b038bcf2af95318df0b5a04290edbaf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/qmlprojectmanager/cmakegen/cmakeprojectconverterdialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmlprojectmanager/cmakegen/cmakeprojectconverterdialog.cpp b/src/plugins/qmlprojectmanager/cmakegen/cmakeprojectconverterdialog.cpp index 885ab406b4..1971e4f84a 100644 --- a/src/plugins/qmlprojectmanager/cmakegen/cmakeprojectconverterdialog.cpp +++ b/src/plugins/qmlprojectmanager/cmakegen/cmakeprojectconverterdialog.cpp @@ -174,10 +174,9 @@ const QString CmakeProjectConverterDialog::errorText() const return ERROR_DIR_NOT_WRITABLE; } - if (FilePath::fromString(m_dirSelector->path()).pathAppended(m_nameEditor->text()).exists()) + if (m_dirSelector->filePath().pathAppended(m_nameEditor->text()).exists()) return ERROR_DIR_EXISTS; - return text; } @@ -195,7 +194,7 @@ const QString CmakeProjectConverterDialog::uniqueProjectName(const FilePath &dir bool CmakeProjectConverterDialog::isValid() { - FilePath newPath = FilePath::fromString(m_dirSelector->path()).pathAppended(m_nameEditor->text()); + FilePath newPath = m_dirSelector->filePath().pathAppended(m_nameEditor->text()); return m_dirSelector->isValid() && m_nameEditor->isValid() && !newPath.exists(); } |