summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-10-10 23:18:46 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-10-11 18:36:11 +0200
commitbc857f466d297e5656fadad4987f218900d6b1a6 (patch)
tree109f1a0a7bac3ebb9c0338ee99105bb5f5e3e90c /src/gui/kernel
parentf6626cf3c3e7336567293b4b943a97b76e4e5f3d (diff)
Fix clazy warnings in QPointingDevice::grabChanged signal
- a signal does not need to be marked const; but fixing it would be BIC, so has to wait until Qt 7 - QPointingDevice::GrabTransition should be fully qualified - wrap the long line while we're at it Amends 2692237bb1b0c0f50b7cc5d920eb8ab065063d47 Change-Id: I5d518bbbcb62d336bae0d59647b16018d83b9479 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qpointingdevice.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/kernel/qpointingdevice.h b/src/gui/kernel/qpointingdevice.h
index de33e27bd0..f1b156bcb6 100644
--- a/src/gui/kernel/qpointingdevice.h
+++ b/src/gui/kernel/qpointingdevice.h
@@ -107,7 +107,12 @@ public:
bool operator==(const QPointingDevice &other) const;
Q_SIGNALS:
- void grabChanged(QObject *grabber, GrabTransition transition, const QPointerEvent *event, const QEventPoint &point) const;
+ void grabChanged(QObject *grabber, QPointingDevice::GrabTransition transition,
+ const QPointerEvent *event, const QEventPoint &point)
+#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
+ const
+#endif
+ ;
protected:
QPointingDevice(QPointingDevicePrivate &d, QObject *parent);