Boot2Qt: Replace FilePath::toString

Replace occurrences of FilePath::toString with more sensible alternatives.

Change-Id: I622aaf34f0209380e9e1fec6789c29fcde087055
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Andrii Semkiv
2024-09-06 16:04:14 +02:00
committed by andrii.semkiv
parent a061cebaa8
commit 3eb7364857

View File

@@ -110,8 +110,7 @@ void QdbWatcher::handleWatchMessage()
void QdbWatcher::forkHostServer() void QdbWatcher::forkHostServer()
{ {
Utils::FilePath qdbFilePath = findTool(QdbTool::Qdb); Utils::FilePath qdbFilePath = findTool(QdbTool::Qdb);
QFile executable(qdbFilePath.toString()); if (!qdbFilePath.exists()) {
if (!executable.exists()) {
const QString message = Tr::tr("Could not find QDB host server executable. " const QString message = Tr::tr("Could not find QDB host server executable. "
"You can set the location with environment variable %1.") "You can set the location with environment variable %1.")
.arg(overridingEnvironmentVariable(QdbTool::Qdb)); .arg(overridingEnvironmentVariable(QdbTool::Qdb));
@@ -121,7 +120,8 @@ void QdbWatcher::forkHostServer()
if (Utils::Process::startDetached({qdbFilePath, {"server"}})) if (Utils::Process::startDetached({qdbFilePath, {"server"}}))
showMessage(Tr::tr("QDB host server started."), false); showMessage(Tr::tr("QDB host server started."), false);
else else
showMessage(Tr::tr("Could not start QDB host server in %1").arg(qdbFilePath.toString()), true); showMessage(
Tr::tr("Could not start QDB host server in %1").arg(qdbFilePath.toUserOutput()), true);
} }
void QdbWatcher::retry() void QdbWatcher::retry()