MainWindow::eventFilter: add static keyword for evts (#23521)

pull/23532/head
Dean Lee 2022-01-14 22:28:38 +08:00 committed by GitHub
parent b75e410779
commit 785180d234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ void MainWindow::closeSettings() {
}
bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
const QSet<QEvent::Type> evts({QEvent::MouseButtonPress, QEvent::MouseMove,
const static QSet<QEvent::Type> evts({QEvent::MouseButtonPress, QEvent::MouseMove,
QEvent::TouchBegin, QEvent::TouchUpdate, QEvent::TouchEnd});
if (evts.contains(event->type())) {