From bc857f466d297e5656fadad4987f218900d6b1a6 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 10 Oct 2022 23:18:46 +0200 Subject: [PATCH] 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 Reviewed-by: Volker Hilsheimer --- src/gui/kernel/qpointingdevice.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);