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/winrt | |
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/winrt')
-rw-r--r-- | src/plugins/winrt/winrtdevice.cpp | 1 | ||||
-rw-r--r-- | src/plugins/winrt/winrtdevice.h | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/winrt/winrtdevice.cpp b/src/plugins/winrt/winrtdevice.cpp index a1ccf7a08f..ed33868491 100644 --- a/src/plugins/winrt/winrtdevice.cpp +++ b/src/plugins/winrt/winrtdevice.cpp @@ -40,7 +40,6 @@ #include <utils/portlist.h> #include <QFileInfo> -#include <QCoreApplication> #include <QIcon> #include <QLoggingCategory> #include <QWizard> diff --git a/src/plugins/winrt/winrtdevice.h b/src/plugins/winrt/winrtdevice.h index 6b077d4747..d6eeb4cba9 100644 --- a/src/plugins/winrt/winrtdevice.h +++ b/src/plugins/winrt/winrtdevice.h @@ -33,7 +33,7 @@ namespace WinRt { namespace Internal { -class WinRtDevice : public ProjectExplorer::IDevice +class WinRtDevice final : public ProjectExplorer::IDevice { public: typedef QSharedPointer<WinRtDevice> Ptr; @@ -56,7 +56,7 @@ private: int m_deviceId = -1; }; -class WinRtDeviceFactory : public ProjectExplorer::IDeviceFactory +class WinRtDeviceFactory final : public QObject, public ProjectExplorer::IDeviceFactory { Q_OBJECT public: |