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:
@@ -370,9 +370,9 @@ void AttachCoreDialog::coreFileChanged(const QString &core)
|
||||
Runnable debugger = DebuggerKitAspect::runnable(k);
|
||||
CoreInfo cinfo = CoreInfo::readExecutableNameFromCore(debugger, core);
|
||||
if (!cinfo.foundExecutableName.isEmpty())
|
||||
d->symbolFileName->setFileName(FilePath::fromString(cinfo.foundExecutableName));
|
||||
d->symbolFileName->setFilePath(FilePath::fromString(cinfo.foundExecutableName));
|
||||
else if (!d->symbolFileName->isValid() && !cinfo.rawStringFromCore.isEmpty())
|
||||
d->symbolFileName->setFileName(FilePath::fromString(cinfo.rawStringFromCore));
|
||||
d->symbolFileName->setFilePath(FilePath::fromString(cinfo.rawStringFromCore));
|
||||
}
|
||||
changed();
|
||||
}
|
||||
@@ -417,7 +417,7 @@ QString AttachCoreDialog::localCoreFile() const
|
||||
|
||||
FilePath AttachCoreDialog::symbolFile() const
|
||||
{
|
||||
return d->symbolFileName->fileName();
|
||||
return d->symbolFileName->filePath();
|
||||
}
|
||||
|
||||
void AttachCoreDialog::setSymbolFile(const QString &symbolFileName)
|
||||
|
||||
Reference in New Issue
Block a user