diff --git a/core/remoteviewserver.cpp b/core/remoteviewserver.cpp index 955bea2ae..2e7269ab8 100644 --- a/core/remoteviewserver.cpp +++ b/core/remoteviewserver.cpp @@ -188,7 +188,7 @@ void RemoteViewServer::sendTouchEvent(int type, int touchDeviceType, int deviceC const QEventPoint::States states(touchPointStates); QTouchEvent event(QEvent::Type(type), m_touchDevice.get(), Qt::KeyboardModifiers(modifiers), states, touchPoints); - auto *mut = QMutableTouchEvent::from(&event); + auto *mut = static_cast(&event); mut->setTarget(m_eventReceiver); #else if (!m_touchDevice) {