mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Beta version 5.12.5: Fix build with Qt 6.
This commit is contained in:
@@ -907,9 +907,7 @@ bool MainMenu::eventHook(QEvent *event) {
|
|||||||
|| type == QEvent::TouchUpdate
|
|| type == QEvent::TouchUpdate
|
||||||
|| type == QEvent::TouchEnd
|
|| type == QEvent::TouchEnd
|
||||||
|| type == QEvent::TouchCancel) {
|
|| type == QEvent::TouchCancel) {
|
||||||
QTouchEvent ev = *static_cast<QTouchEvent*>(event);
|
QGuiApplication::sendEvent(_inner, event);
|
||||||
ev.setTimestamp(crl::now());
|
|
||||||
QGuiApplication::sendEvent(_inner, &ev);
|
|
||||||
}
|
}
|
||||||
return RpWidget::eventHook(event);
|
return RpWidget::eventHook(event);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user