forked from qt-creator/qt-creator
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:
@@ -329,7 +329,7 @@ void MultiExportDialog::accept()
|
||||
|
||||
QString MultiExportDialog::exportFileName() const
|
||||
{
|
||||
return m_pathChooser->fileName().toString();
|
||||
return m_pathChooser->filePath().toString();
|
||||
}
|
||||
|
||||
void MultiExportDialog::setExportFileName(QString f)
|
||||
@@ -337,7 +337,7 @@ void MultiExportDialog::setExportFileName(QString f)
|
||||
const int lastDot = f.lastIndexOf('.');
|
||||
if (lastDot != -1)
|
||||
f.insert(lastDot, "-%1");
|
||||
m_pathChooser->setFileName(Utils::FilePath::fromString(f));
|
||||
m_pathChooser->setFilePath(Utils::FilePath::fromString(f));
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user