ProjectExplorer: Remove IDevice::terminalCommand

Since Terminals can now be started for device file paths, there
is no need anymore for IDevice::terminalCommand.

Change-Id: I01c831ea7ee29d53efa6880631e8c6d54a4316aa
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-03-01 09:57:43 +01:00
parent 517400e7f6
commit 86da87d306
10 changed files with 56 additions and 46 deletions

View File

@@ -99,11 +99,10 @@ QList<ShellModelItem> ShellModel::remote() const
{
const auto deviceCmds = Utils::Terminal::Hooks::instance().getTerminalCommandsForDevicesHook()();
const QList<ShellModelItem> deviceItems
= Utils::transform(deviceCmds,
[](const Utils::Terminal::NameAndCommandLine &item) -> ShellModelItem {
return ShellModelItem{item.name, {}, {item.commandLine, {}, {}}};
});
const QList<ShellModelItem> deviceItems = Utils::transform(
deviceCmds, [](const Utils::Terminal::NameAndCommandLine &item) -> ShellModelItem {
return ShellModelItem{item.name, {}, {item.commandLine, std::nullopt, std::nullopt}};
});
return deviceItems;
}