diff options
author | hjk <hjk@qt.io> | 2020-01-21 16:17:59 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-01-23 13:32:12 +0000 |
commit | d08c0f31c449dab03b480ce07fe741620f3dcf57 (patch) | |
tree | 5fed285af9823c27be151bcdf44bce97f184bea8 /src/plugins/qnx | |
parent | 8265d1d710b6b8676e4ee4fdf4a47269898596ca (diff) |
De-Q_OBJECT-ify most DeviceFactories
WinRt is the odd one out.
Some were using setObjectName, but only used for debug reasons,
not really needed.
Change-Id: I4a370e4694443bc1c455fda4337ef3acfb9259b8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qnx')
-rw-r--r-- | src/plugins/qnx/qnxdevice.cpp | 2 | ||||
-rw-r--r-- | src/plugins/qnx/qnxdevice.h | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/qnx/qnxdevice.cpp b/src/plugins/qnx/qnxdevice.cpp index da5e5ca11e..99a94c7f75 100644 --- a/src/plugins/qnx/qnxdevice.cpp +++ b/src/plugins/qnx/qnxdevice.cpp @@ -176,7 +176,7 @@ DeviceProcessSignalOperation::Ptr QnxDevice::signalOperation() const QnxDeviceFactory::QnxDeviceFactory() : ProjectExplorer::IDeviceFactory(Constants::QNX_QNX_OS_TYPE) { - setDisplayName(tr("QNX Device")); + setDisplayName(QnxDevice::tr("QNX Device")); setCombinedIcon(":/qnx/images/qnxdevicesmall.png", ":/qnx/images/qnxdevice.png"); setCanCreate(true); diff --git a/src/plugins/qnx/qnxdevice.h b/src/plugins/qnx/qnxdevice.h index 3cd7a069f9..75666868db 100644 --- a/src/plugins/qnx/qnxdevice.h +++ b/src/plugins/qnx/qnxdevice.h @@ -32,7 +32,7 @@ namespace Qnx { namespace Internal { -class QnxDevice : public RemoteLinux::LinuxDevice +class QnxDevice final : public RemoteLinux::LinuxDevice { Q_DECLARE_TR_FUNCTIONS(Qnx::Internal::QnxDevice) @@ -66,10 +66,8 @@ private: mutable int m_versionNumber = 0; }; -class QnxDeviceFactory : public ProjectExplorer::IDeviceFactory +class QnxDeviceFactory final : public ProjectExplorer::IDeviceFactory { - Q_OBJECT - public: QnxDeviceFactory(); |