diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-05 18:11:56 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-07 06:24:28 +0100 |
commit | bdec189ecbc2cabbfa803a571b49533f190f053d (patch) | |
tree | a061307e207cfbdb989e463c9535208a822fab78 /src/gui/kernel/qinputdevice.cpp | |
parent | 1c6d6cbb62c5e93cbcad2d740c3b0ed01095618c (diff) |
Move QEventPoint and QPointingDeviceUniqueId out of qevent
qevent.h/cpp are huge already, no need for more classes. Move QEventPoint
into new qeventpoint.h/cpp files, and QPointingDeviceUniqueId into
qpointingdevice.cpp; the class is already declared in qpointingdevice.h.
Move the documentation of QEventPoint APIs next to the implementation,
and document all APIs as properties. Add Q_PROPERTY macro where missing.
QEventPoint::device needs a workaround of qdoc due to the type being a
pointer-to-const; qdoc doesn't know how to tie a \property to it, but
documents it correctly.
While at it, move the logging category declarations to the header
matching the .cpp file where they are defined.
Change-Id: I096e609edbb760b5686d577e7fe47eea0807904e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/kernel/qinputdevice.cpp')
-rw-r--r-- | src/gui/kernel/qinputdevice.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/kernel/qinputdevice.cpp b/src/gui/kernel/qinputdevice.cpp index 09b1939c29..eb3259347a 100644 --- a/src/gui/kernel/qinputdevice.cpp +++ b/src/gui/kernel/qinputdevice.cpp @@ -40,16 +40,14 @@ #include "qinputdevice.h" #include "qinputdevice_p.h" #include "qpointingdevice.h" +#include "qwindowsysteminterface_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. |