forked from qt-creator/qt-creator
Qnx: Streamline device construction
Remove some functions and ctors. Change-Id: I2b7d5fd0ec5bab0246967b2742f1d3e142f930da Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -78,20 +78,6 @@ class QnxPortsGatheringMethod : public PortsGatheringMethod
|
||||
};
|
||||
|
||||
QnxDevice::QnxDevice()
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
QnxDevice::QnxDevice(const QString &name, Origin origin, Core::Id id)
|
||||
{
|
||||
setupId(origin, id);
|
||||
setDisplayName(name);
|
||||
init();
|
||||
}
|
||||
|
||||
QnxDevice::QnxDevice(const QnxDevice &other) = default;
|
||||
|
||||
void QnxDevice::init()
|
||||
{
|
||||
addDeviceAction({tr("Deploy Qt libraries..."), [](const IDevice::Ptr &device, QWidget *parent) {
|
||||
QnxDeployQtLibrariesDialog dialog(device, parent);
|
||||
@@ -99,16 +85,6 @@ void QnxDevice::init()
|
||||
}});
|
||||
}
|
||||
|
||||
QnxDevice::Ptr QnxDevice::create()
|
||||
{
|
||||
return Ptr(new QnxDevice);
|
||||
}
|
||||
|
||||
QnxDevice::Ptr QnxDevice::create(const QString &name, Origin origin, Core::Id id)
|
||||
{
|
||||
return Ptr(new QnxDevice(name, origin, id));
|
||||
}
|
||||
|
||||
QString QnxDevice::displayType() const
|
||||
{
|
||||
return tr("QNX");
|
||||
|
||||
Reference in New Issue
Block a user