From 77b0d4363c3faddd19680a9fe4a9746efc1b073e Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 14 Jan 2022 22:28:38 +0800 Subject: [PATCH] MainWindow::eventFilter: add static keyword for evts (#23521) old-commit-hash: 785180d234ddc5d095175b5b270140cd558d1095 --- selfdrive/ui/qt/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/window.cc b/selfdrive/ui/qt/window.cc index e2e4fc908..76d5a39d4 100644 --- a/selfdrive/ui/qt/window.cc +++ b/selfdrive/ui/qt/window.cc @@ -80,7 +80,7 @@ void MainWindow::closeSettings() { } bool MainWindow::eventFilter(QObject *obj, QEvent *event) { - const QSet evts({QEvent::MouseButtonPress, QEvent::MouseMove, + const static QSet evts({QEvent::MouseButtonPress, QEvent::MouseMove, QEvent::TouchBegin, QEvent::TouchUpdate, QEvent::TouchEnd}); if (evts.contains(event->type())) {