ProjectExplorer: Use setter for IDevice::type

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

Change-Id: I8b0f2270a9f6545ff9419ef8cf44b456c2233223
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-01-14 16:11:27 +01:00
parent 75bce4332d
commit 09c1c170d2
19 changed files with 52 additions and 50 deletions

View File

@@ -52,7 +52,8 @@ QnxDeviceWizard::QnxDeviceWizard(QWidget *parent) :
m_finalPage->setCommitPage(true);
QSsh::SshConnectionParameters sshParams;
sshParams.timeout = 10;
m_device = QnxDevice::create(tr("QNX Device"), Core::Id(Constants::QNX_QNX_OS_TYPE));
m_device = QnxDevice::create(tr("QNX Device"));
m_device->setType(Constants::QNX_QNX_OS_TYPE);
m_device->setMachineType(IDevice::Hardware);
m_device->setSshParameters(sshParams);
m_device->setFreePorts(Utils::PortList::fromString(QLatin1String("10000-10100")));