diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-08-30 12:32:29 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-09-05 14:16:38 +0000 |
commit | 35ed524d9226cb705081737652d72d5cbb86e6c6 (patch) | |
tree | 10b3a9b313c0ddf4d2447d701765da5d3db0d22c /src/platformsupport/input/evdevmouse/qevdevmousehandler_p.h | |
parent | 4250993c4280b80f472af77efa6cf77410b383c1 (diff) |
evdev*,libinput: use functor-based connections
This results in less boilerplate code, among other benefits that
come with functor-based connections. Simple expressions have been
converted to use lambda.
Change-Id: I6887980524027eada24beed95e6f9ba43f0fc8d5
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/platformsupport/input/evdevmouse/qevdevmousehandler_p.h')
-rw-r--r-- | src/platformsupport/input/evdevmouse/qevdevmousehandler_p.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/platformsupport/input/evdevmouse/qevdevmousehandler_p.h b/src/platformsupport/input/evdevmouse/qevdevmousehandler_p.h index 79156645da..6cad4b9173 100644 --- a/src/platformsupport/input/evdevmouse/qevdevmousehandler_p.h +++ b/src/platformsupport/input/evdevmouse/qevdevmousehandler_p.h @@ -66,13 +66,12 @@ public: static QEvdevMouseHandler *create(const QString &device, const QString &specification); ~QEvdevMouseHandler(); + void readMouseData(); + signals: void handleMouseEvent(int x, int y, bool abs, Qt::MouseButtons buttons); void handleWheelEvent(QPoint delta); -private slots: - void readMouseData(); - private: QEvdevMouseHandler(const QString &device, int fd, bool abs, bool compression, int jitterLimit); |