diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-22 11:08:14 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-22 11:22:17 +0200 |
commit | 29d3e7ce38abd09c85d9b28fbc2f89a16fb155c2 (patch) | |
tree | 606c76b48bdac6f68e8ef513b5fc69c0a1f1fc3e /src/gui/kernel/qinputdevice.cpp | |
parent | 4a12757e5d192527137d543815a1324c113cf39b (diff) |
Replace "no devices registered" warnings with qCDebug
The idea was to keep nagging us to update all the platform plugins to
do device registration. But besides being annoying, it would cause
test failures if we start adding QTest::ignoreMessage() all over,
and then some platforms start doing device registration properly.
Change-Id: Ia0fbb64cf86f33532be032ec9eebe6e4ad607f20
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/kernel/qinputdevice.cpp')
-rw-r--r-- | src/gui/kernel/qinputdevice.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/kernel/qinputdevice.cpp b/src/gui/kernel/qinputdevice.cpp index 3027c733e7..e70b0d61be 100644 --- a/src/gui/kernel/qinputdevice.cpp +++ b/src/gui/kernel/qinputdevice.cpp @@ -41,11 +41,14 @@ #include "qinputdevice_p.h" #include <QCoreApplication> #include <QDebug> +#include <QLoggingCategory> #include <QMutex> #include <QScreen> QT_BEGIN_NAMESPACE +Q_DECLARE_LOGGING_CATEGORY(lcQpaInputDevices) + /*! \class QInputDevice \brief The QInputDevice class describes a device from which a QInputEvent originates. @@ -208,9 +211,9 @@ const QInputDevice *QInputDevice::primaryKeyboard(const QString& seatName) } } if (!ret) { - qWarning() << "no keyboards registered for seat" << seatName - << "The platform plugin should have provided one via " - "QWindowSystemInterface::registerInputDevice(). Creating a default one for now."; + qCDebug(lcQpaInputDevices) << "no keyboards registered for seat" << seatName + << "The platform plugin should have provided one via " + "QWindowSystemInterface::registerInputDevice(). Creating a default one for now."; ret = new QInputDevice(QLatin1String("core keyboard"), 0, DeviceType::Keyboard, seatName); QInputDevicePrivate::registerDevice(ret); return ret; |