diff options
author | hjk <hjk@qt.io> | 2020-04-09 11:05:50 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-04-09 17:30:23 +0000 |
commit | 79b680e7f0b0ff5ecca9b17fabb11fd03947ec8f (patch) | |
tree | ec8f594ed02b1a55869ade473130efb806b20ca1 /src/plugins/projectexplorer/projectmodels.cpp | |
parent | 45ba9fcd535e4cfd5f057149b1ca4bb4dfed5bdb (diff) | |
download | qt-creator-79b680e7f0b0ff5ecca9b17fabb11fd03947ec8f.tar.gz |
Utils: Rename PathChooser::{f,setF}ileName() to {f,setF}ilePath()
It's returning a FilePath, so it's a better fit.
Keep the old versions as inline function now to ease downstream migration.
Change-Id: I535887928018f42b92895c8b0c82527f0d55e5ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/projectexplorer/projectmodels.cpp')
-rw-r--r-- | src/plugins/projectexplorer/projectmodels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp index 43dc4ee412..a0645aa510 100644 --- a/src/plugins/projectexplorer/projectmodels.cpp +++ b/src/plugins/projectexplorer/projectmodels.cpp @@ -516,7 +516,7 @@ public: targetDirLayout->addWidget(new QLabel(tr("Target directory:"), this)); m_targetDirChooser = new PathChooser(this); m_targetDirChooser->setExpectedKind(PathChooser::ExistingDirectory); - m_targetDirChooser->setFileName(defaultTargetDir); + m_targetDirChooser->setFilePath(defaultTargetDir); connect(m_targetDirChooser, &PathChooser::validChanged, this, [this](bool valid) { m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(valid); }); @@ -549,7 +549,7 @@ public: DropAction dropAction() const { return static_cast<DropAction>(m_buttonGroup->checkedId()); } FilePath targetDir() const { - return m_targetDirChooser ? m_targetDirChooser->fileName() : FilePath(); + return m_targetDirChooser ? m_targetDirChooser->filePath() : FilePath(); } private: |