forked from qt-creator/qt-creator
Project: Base IDevice on AspectContainer
This is effectively the same approach as taken with ProjectConfiguration. Having the settings separate leads to quite some boilerplate and in the end to parallel IDevice and DeviceSettings hierarchies. The unusual registration of the docker aspects are due to the multiple inheritance, we need to "dynamic" downcast. Change-Id: I50864e2009f4e525d635decf1c9beaad5e6a5f1f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -84,7 +84,7 @@ void DeviceDetector::handleDeviceEvent(QdbDeviceTracker::DeviceEventType eventTy
|
||||
const QString name = Tr::tr("Boot to Qt device %1").arg(serial);
|
||||
QdbDevice::Ptr device = QdbDevice::create();
|
||||
device->setupId(IDevice::AutoDetected, deviceId);
|
||||
device->settings()->displayName.setValue(name);
|
||||
device->displayName.setValue(name);
|
||||
device->setType(Qdb::Constants::QdbLinuxOsType);
|
||||
device->setMachineType(IDevice::Hardware);
|
||||
device->setExtraData(ProjectExplorer::Constants::SUPPORTS_RSYNC, true);
|
||||
|
||||
Reference in New Issue
Block a user