summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qpointingdevice_p.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-05 18:11:56 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-07 06:24:28 +0100
commitbdec189ecbc2cabbfa803a571b49533f190f053d (patch)
treea061307e207cfbdb989e463c9535208a822fab78 /src/gui/kernel/qpointingdevice_p.h
parent1c6d6cbb62c5e93cbcad2d740c3b0ed01095618c (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/qpointingdevice_p.h')
-rw-r--r--src/gui/kernel/qpointingdevice_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qpointingdevice_p.h b/src/gui/kernel/qpointingdevice_p.h
index 299b99959e..6f787b4159 100644
--- a/src/gui/kernel/qpointingdevice_p.h
+++ b/src/gui/kernel/qpointingdevice_p.h
@@ -51,6 +51,7 @@
// We mean it.
//
+#include <QtCore/qloggingcategory.h>
#include <QtGui/private/qevent_p.h>
#include <QtGui/qpointingdevice.h>
#include <QtGui/private/qtguiglobal_p.h>
@@ -59,6 +60,8 @@
QT_BEGIN_NAMESPACE
+Q_DECLARE_LOGGING_CATEGORY(lcPointerGrab);
+
class Q_GUI_EXPORT QPointingDevicePrivate : public QInputDevicePrivate
{
Q_DECLARE_PUBLIC(QPointingDevice)