diff --git a/src/gui/kernel/qinputdevicemanager.cpp b/src/gui/kernel/qinputdevicemanager.cpp index 11442407e1..254b130461 100644 --- a/src/gui/kernel/qinputdevicemanager.cpp +++ b/src/gui/kernel/qinputdevicemanager.cpp @@ -67,6 +67,8 @@ QInputDeviceManager::QInputDeviceManager(QObject *parent) qRegisterMetaType(); } +QInputDeviceManager::~QInputDeviceManager() = default; + int QInputDeviceManager::deviceCount(DeviceType type) const { Q_D(const QInputDeviceManager); diff --git a/src/gui/kernel/qinputdevicemanager_p.h b/src/gui/kernel/qinputdevicemanager_p.h index 1d20b102e3..03dbde2d54 100644 --- a/src/gui/kernel/qinputdevicemanager_p.h +++ b/src/gui/kernel/qinputdevicemanager_p.h @@ -74,7 +74,8 @@ public: NumDeviceTypes }; - QInputDeviceManager(QObject *parent = nullptr); + explicit QInputDeviceManager(QObject *parent = nullptr); + ~QInputDeviceManager() override; int deviceCount(DeviceType type) const;