mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 19:12:07 +08:00
MainWindow: use static QSet for filter_events (#20924)
old-commit-hash: 2c73cac0a230e57138e5e9cd75e1da76a211e97f
This commit is contained in:
@@ -75,7 +75,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event){
|
||||
|
||||
#ifdef QCOM
|
||||
// filter out touches while in android activity
|
||||
const QList<QEvent::Type> filter_events = {QEvent::MouseButtonPress, QEvent::MouseMove, QEvent::TouchBegin, QEvent::TouchUpdate, QEvent::TouchEnd};
|
||||
const static QSet<QEvent::Type> filter_events({QEvent::MouseButtonPress, QEvent::MouseMove, QEvent::TouchBegin, QEvent::TouchUpdate, QEvent::TouchEnd});
|
||||
if (HardwareEon::launched_activity && filter_events.contains(event->type())) {
|
||||
HardwareEon::check_activity();
|
||||
if (HardwareEon::launched_activity) {
|
||||
|
||||
Reference in New Issue
Block a user