ProjectExplorer: Use setter for IDevice::machineType

First step towards streamlining the IDevice::ctor/create lines
of functions.

Change-Id: I44226f8a05902cadd40c8820ab67752070d186c0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-01-14 15:27:52 +01:00
parent ae0d895d96
commit 75bce4332d
19 changed files with 51 additions and 46 deletions

View File

@@ -63,7 +63,8 @@ GenericLinuxDeviceConfigurationWizard::GenericLinuxDeviceConfigurationWizard(QWi
setPage(Internal::FinalPageId, &d->finalPage);
d->finalPage.setCommitPage(true);
d->device = LinuxDevice::create(tr("Generic Linux Device"),
Core::Id(Constants::GenericLinuxOsType), IDevice::Hardware);
Core::Id(Constants::GenericLinuxOsType));
d->device->setMachineType(IDevice::Hardware);
d->device->setFreePorts(Utils::PortList::fromString(QLatin1String("10000-10100")));
SshConnectionParameters sshParams;
sshParams.timeout = 10;