RemoteLinux: Streamline device construction

Remove create() and init() functions and ctors except default constructor.

Change-Id: Ib59606361e9000cf51df6eb69252cc00d9bd1684
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-01-15 08:51:13 +01:00
parent aeb3600eef
commit 54385ad67b
4 changed files with 7 additions and 30 deletions

View File

@@ -62,7 +62,9 @@ GenericLinuxDeviceConfigurationWizard::GenericLinuxDeviceConfigurationWizard(QWi
setPage(Internal::KeyDeploymentPageId, &d->keyDeploymentPage);
setPage(Internal::FinalPageId, &d->finalPage);
d->finalPage.setCommitPage(true);
d->device = LinuxDevice::create(tr("Generic Linux Device"));
d->device = LinuxDevice::create();
d->device->setupId(IDevice::ManuallyAdded, Core::Id());
d->device->setDisplayName(tr("Generic Linux Device"));
d->device->setType(Constants::GenericLinuxOsType);
d->device->setMachineType(IDevice::Hardware);
d->device->setFreePorts(Utils::PortList::fromString(QLatin1String("10000-10100")));