@@ -1,43 +1,18 @@
1−/****************************************************************************
1+/*
3−** Copyright (C) 2014 Canonical, Ltd. and/or its subsidiary(-ies).
2+ * Copyright 2015 Canonical Ltd.
4−** Contact: http://www.qt-project.org/legal
3+ *
5−**
4+ * This program is free software; you can redistribute it and/or modify
6−** This file is part of the QtSystems module of the Qt Toolkit.
5+ * it under the terms of the GNU Lesser General Public License as published by
7−**
6+ * the Free Software Foundation; version 3.
8−** $QT_BEGIN_LICENSE:LGPL$
7+ *
9−** Commercial License Usage
8+ * This program is distributed in the hope that it will be useful,
10−** Licensees holding valid commercial Qt licenses may use this file in
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11−** accordance with the commercial license agreement provided with the
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12−** Software or, alternatively, in accordance with the terms contained in
11+ * GNU Lesser General Public License for more details.
13−** a written agreement between you and Digia. For licensing terms and
12+ *
14−** conditions see http://qt.digia.com/licensing. For further information
13+ * You should have received a copy of the GNU Lesser General Public License
15−** use the contact form at http://qt.digia.com/contact-us.
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17−** GNU Lesser General Public License Usage
18−** Alternatively, this file may be used under the terms of the GNU Lesser
19−** General Public License version 2.1 as published by the Free Software
20−** Foundation and appearing in the file LICENSE.LGPL included in the
21−** packaging of this file. Please review the following information to
22−** ensure the GNU Lesser General Public License version 2.1 requirements
23−** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25−** In addition, as a special exception, Digia gives you certain additional
26−** rights. These rights are described in the Digia Qt LGPL Exception
27−** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29−** GNU General Public License Usage
30−** Alternatively, this file may be used under the terms of the GNU
31−** General Public License version 3.0 as published by the Free Software
32−** Foundation and appearing in the file LICENSE.GPL included in the
33−** packaging of this file. Please review the following information to
34−** ensure the GNU General Public License version 3.0 requirements will be
35−** met: http://www.gnu.org/copyleft/gpl.html.
40−****************************************************************************/
42#include "qinputdeviceinfo_mock_p.h"
17#include "qinputdeviceinfo_mock_p.h"
@@ -62,7 +37,7 @@ QInputDevice *QInputDeviceManagerPrivate::addMockDevice(const QString &devicePat
62 inputDevice->setName("Mock Device " + devicePath);
37 inputDevice->setName("Mock Device " + devicePath);
63 inputDevice->setType(type);
38 inputDevice->setType(type);
64 deviceMap.insert(devicePath, inputDevice);
39 deviceMap.insert(devicePath, inputDevice);
65− qDebug() << "Adding mock input device" << devicePath << type;
40+ qDebug() << "Adding mock input device" << devicePath << type << inputDevice << this;
66 Q_EMIT deviceAdded(devicePath);
41 Q_EMIT deviceAdded(devicePath);
67 return inputDevice;
42 return inputDevice;