mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-12 12:52:13 +08:00
MainWindow::eventFilter: add static keyword for evts (#23521)
old-commit-hash: 785180d234ddc5d095175b5b270140cd558d1095
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user