forked from qt-creator/qt-creator
ProjectExplorer: Make Device::displayType a data member
Change-Id: If650f660e3b10bc28d575ded07a854f59be26f87 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -172,11 +172,6 @@ class LinuxPortsGatheringMethod : public PortsGatheringMethod
|
||||
}
|
||||
};
|
||||
|
||||
QString LinuxDevice::displayType() const
|
||||
{
|
||||
return tr("Generic Linux");
|
||||
}
|
||||
|
||||
IDeviceWidget *LinuxDevice::createWidget()
|
||||
{
|
||||
return new GenericLinuxDeviceConfigurationWidget(sharedFromThis());
|
||||
@@ -189,6 +184,8 @@ Utils::OsType LinuxDevice::osType() const
|
||||
|
||||
LinuxDevice::LinuxDevice()
|
||||
{
|
||||
setDisplayType(tr("Generic Linux"));
|
||||
|
||||
addDeviceAction({tr("Deploy Public Key..."), [](const IDevice::Ptr &device, QWidget *parent) {
|
||||
if (auto d = PublicKeyDeploymentDialog::createDialog(device, parent)) {
|
||||
d->exec();
|
||||
|
||||
Reference in New Issue
Block a user