summaryrefslogtreecommitdiff
path: root/src/plugins/qnx/qnxdevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qnx/qnxdevice.cpp')
-rw-r--r--src/plugins/qnx/qnxdevice.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/plugins/qnx/qnxdevice.cpp b/src/plugins/qnx/qnxdevice.cpp
index 7794dbde1b..da5e5ca11e 100644
--- a/src/plugins/qnx/qnxdevice.cpp
+++ b/src/plugins/qnx/qnxdevice.cpp
@@ -60,9 +60,9 @@ class QnxPortsGatheringMethod : public PortsGatheringMethod
// used to be fixed. These two can now be matched to each other.
Runnable runnable(QAbstractSocket::NetworkLayerProtocol protocol) const override
{
- Q_UNUSED(protocol);
+ Q_UNUSED(protocol)
Runnable runnable;
- runnable.executable = "netstat";
+ runnable.executable = FilePath::fromString("netstat");
runnable.commandLineArguments = "-na";
return runnable;
}
@@ -82,22 +82,16 @@ class QnxPortsGatheringMethod : public PortsGatheringMethod
QnxDevice::QnxDevice()
{
+ setDisplayType(tr("QNX"));
+ setDefaultDisplayName(tr("QNX Device"));
+ setOsType(OsTypeOtherUnix);
+
addDeviceAction({tr("Deploy Qt libraries..."), [](const IDevice::Ptr &device, QWidget *parent) {
QnxDeployQtLibrariesDialog dialog(device, parent);
dialog.exec();
}});
}
-QString QnxDevice::displayType() const
-{
- return tr("QNX");
-}
-
-OsType QnxDevice::osType() const
-{
- return OsTypeOtherUnix;
-}
-
int QnxDevice::qnxVersion() const
{
if (m_versionNumber == 0)
@@ -114,7 +108,7 @@ void QnxDevice::updateVersionNumber() const
QObject::connect(&versionNumberProcess, &DeviceProcess::error, &eventLoop, &QEventLoop::quit);
Runnable r;
- r.executable = QLatin1String("uname");
+ r.executable = FilePath::fromString("uname");
r.commandLineArguments = QLatin1String("-r");
versionNumberProcess.start(r);