summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qmousehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/frontend/qmousehandler.cpp')
-rw-r--r--src/input/frontend/qmousehandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/frontend/qmousehandler.cpp b/src/input/frontend/qmousehandler.cpp
index dab6d95cd..31b3e609e 100644
--- a/src/input/frontend/qmousehandler.cpp
+++ b/src/input/frontend/qmousehandler.cpp
@@ -23,7 +23,7 @@ QMouseHandlerPrivate::QMouseHandlerPrivate()
m_shareable = false;
m_pressAndHoldTimer->setSingleShot(true);
m_pressAndHoldTimer->setInterval(800);
- QObject::connect(m_pressAndHoldTimer, &QTimer::timeout, [this] {
+ QObject::connect(m_pressAndHoldTimer, &QTimer::timeout, q_func(), [this] {
emit q_func()->pressAndHold(m_lastPressedEvent.data());
});
}