forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user