Qnx: Simplify QnxDeviceWizard interface

Also provide a parent.

Change-Id: I8ca95d09af8126b9e822f891ef815bfcaa84a9d2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-03-14 16:15:13 +01:00
parent 2704f8ff0b
commit ba39377edb
5 changed files with 52 additions and 64 deletions

View File

@@ -41,7 +41,6 @@ public:
: RemoteLinuxSignalOperation(device)
{}
QString killProcessByNameCommandLine(const QString &filePath) const override
{
return QString::fromLatin1("%1; %2").arg(signalProcessByNameQnxCommandLine(filePath, 15),
@@ -138,12 +137,7 @@ QnxDeviceFactory::QnxDeviceFactory() : IDeviceFactory(Constants::QNX_QNX_OS_TYPE
setCombinedIcon(":/qnx/images/qnxdevicesmall.png",
":/qnx/images/qnxdevice.png");
setConstructionFunction(&QnxDevice::create);
setCreator([] {
QnxDeviceWizard wizard;
if (wizard.exec() != QDialog::Accepted)
return IDevice::Ptr();
return wizard.device();
});
setCreator(&runDeviceWizard);
}
} // Qnx::Internal