summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qinputdevicemanager_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-08-05 08:38:45 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-08-06 13:02:44 +0200
commit066dd1cdc0660d2e47bbcbad3c119d7029e08ecc (patch)
tree946a360c3b3ec13ae113d60809cce21c336d5a70 /src/gui/kernel/qinputdevicemanager_p.h
parent6336b5350b68e6430a7585d6658a9d653689186f (diff)
QInputDeviceManager: ++explicit, ++out-of-line-dtors
It's private API, but exported, so de-inline the dtor to pin the vtable in QtCore instead of potentially duplicating it in every plugin that uses the class. Change-Id: Ia948985bb94677c8453a8e7be27a14085303aaf5 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui/kernel/qinputdevicemanager_p.h')
-rw-r--r--src/gui/kernel/qinputdevicemanager_p.h3
1 files changed, 2 insertions, 1 deletions
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;