@@ -37,16 +37,13 @@ QInputDevice *QInputDeviceManagerPrivate::addMockDevice(const QString &devicePat
37 inputDevice->setName("Mock Device " + devicePath);
37 inputDevice->setName("Mock Device " + devicePath);
38 inputDevice->setType(type);
38 inputDevice->setType(type);
39 deviceMap.insert(devicePath, inputDevice);
39 deviceMap.insert(devicePath, inputDevice);
40− qDebug() << "Adding mock input device" << devicePath << type << inputDevice << this;
41 Q_EMIT deviceAdded(devicePath);
40 Q_EMIT deviceAdded(devicePath);
42 return inputDevice;
41 return inputDevice;
45void QInputDeviceManagerPrivate::removeDevice(const QString &path)
44void QInputDeviceManagerPrivate::removeDevice(const QString &path)
47− qDebug() << "should remove" << path;
48 Q_FOREACH (const QString devicePath, deviceMap.keys()) {
46 Q_FOREACH (const QString devicePath, deviceMap.keys()) {
49− qDebug() << "comparing" << devicePath << path;
50 if (devicePath.contains(path)) {
47 if (devicePath.contains(path)) {
51 deviceMap.remove(devicePath);
48 deviceMap.remove(devicePath);
52 Q_EMIT deviceRemoved(devicePath);
49 Q_EMIT deviceRemoved(devicePath);