Qnx: Inline only use of QnxDeviceFactory::deviceType()

And add a comment to the secondary use of Constants::QNX_QNX_OS_TYPE
as device type.

Change-Id: I1ae4bda890c87500a23e1df5cb7fa6e4f1079c96
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-02-21 09:11:53 +01:00
parent 2707430945
commit 1e615d7acf
4 changed files with 2 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ const char QNX_QNX_RUNCONFIGURATION_PREFIX[] = "Qt4ProjectManager.QNX.QNXRunConf
const char QNX_QNX_DEPLOYCONFIGURATION_ID[] = "Qt4ProjectManager.QNX.QNXDeployConfiguration";
const char QNX_QNX_OS_TYPE[] = "QnxOsType";
const char QNX_QNX_OS_TYPE[] = "QnxOsType"; // Also used for device type.
const char QNX_DEBUG_EXECUTABLE[] = "pdebug";

View File

@@ -201,10 +201,5 @@ ProjectExplorer::IDevice::Ptr QnxDeviceFactory::create() const
return wizard.device();
}
Core::Id QnxDeviceFactory::deviceType()
{
return Core::Id(Constants::QNX_QNX_OS_TYPE);
}
} // namespace Internal
} // namespace Qnx

View File

@@ -78,8 +78,6 @@ public:
QnxDeviceFactory();
ProjectExplorer::IDevice::Ptr create() const override;
static Core::Id deviceType();
};
} // namespace Internal

View File

@@ -88,7 +88,7 @@ public:
setConfigBaseId(Constants::QNX_QNX_DEPLOYCONFIGURATION_ID);
setDefaultDisplayName(QCoreApplication::translate("Qnx::Internal::QnxDeployConfiguration",
"Deploy to QNX Device"));
addSupportedTargetDeviceType(QnxDeviceFactory::deviceType());
addSupportedTargetDeviceType(Constants::QNX_QNX_OS_TYPE);
setUseDeploymentDataView();
addInitialStep(DeviceCheckBuildStep::stepId());