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>
This commit is contained in:
hjk
2020-04-09 11:05:50 +02:00
parent 45ba9fcd53
commit 79b680e7f0
44 changed files with 136 additions and 129 deletions

View File

@@ -80,7 +80,7 @@ ImportWidget::ImportWidget(QWidget *parent) :
void ImportWidget::setCurrentDirectory(const Utils::FilePath &dir)
{
m_pathChooser->setBaseDirectory(dir);
m_pathChooser->setFileName(dir);
m_pathChooser->setFilePath(dir);
}
bool ImportWidget::ownsReturnKey() const
@@ -90,10 +90,10 @@ bool ImportWidget::ownsReturnKey() const
void ImportWidget::handleImportRequest()
{
Utils::FilePath dir = m_pathChooser->fileName();
Utils::FilePath dir = m_pathChooser->filePath();
emit importFrom(dir);
m_pathChooser->setFileName(m_pathChooser->baseDirectory());
m_pathChooser->setFilePath(m_pathChooser->baseDirectory());
}
} // namespace Internal