QInputDeviceManager: initialize device counts

The device counts were used before they were initialized, causing
problems e.g. with mouse cursor.

Fixes: QTBUG-81207
Change-Id: Ic9dadcaebeb4c4a64bb506e4236d5a9260e0fdbc
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
bb10
Samuli Piippo 2020-01-07 13:52:11 +02:00
parent 34e467b481
commit 2385ab73be
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public:
int deviceCount(QInputDeviceManager::DeviceType type) const;
void setDeviceCount(QInputDeviceManager::DeviceType type, int count);
std::array<int, QInputDeviceManager::NumDeviceTypes> m_deviceCount;
std::array<int, QInputDeviceManager::NumDeviceTypes> m_deviceCount = {};
Qt::KeyboardModifiers keyboardModifiers;
};