From a33bd4e0a590fb08f0055b6e859ce84db11eb843 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 21 Sep 2023 23:27:56 +0400 Subject: [PATCH] Fix QApplicationPrivate::translateRawTouchEvent Qt version check --- ui/widgets/popup_menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/widgets/popup_menu.cpp b/ui/widgets/popup_menu.cpp index 5a6884e..5ce70cf 100644 --- a/ui/widgets/popup_menu.cpp +++ b/ui/widgets/popup_menu.cpp @@ -655,14 +655,14 @@ bool PopupMenu::eventFilter(QObject *o, QEvent *e) { event->device(), event->touchPoints(), event->timestamp())); -#elif QT_VERSION < QT_VERSION_CHECK(6, 3, 0) // Qt < 6.0.0 +#elif QT_VERSION < QT_VERSION_CHECK(6, 2, 0) // Qt < 6.0.0 e->setAccepted( QApplicationPrivate::translateRawTouchEvent( this, event->pointingDevice(), const_cast &>(event->points()), event->timestamp())); -#else // Qt < 6.3.0 +#else // Qt < 6.2.0 e->setAccepted( QApplicationPrivate::translateRawTouchEvent(this, event)); #endif