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

old-commit-hash: 785180d234ddc5d095175b5b270140cd558d1095
This commit is contained in:
Dean Lee
2022-01-14 22:28:38 +08:00
committed by GitHub
parent 4b0cd07836
commit 77b0d4363c
+1 -1
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())) {