|
@@ -385,7 +385,11 @@ void MainWindow::setEventFilterRecursive(QObject *widget)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- widget->installEventFilter(this);
|
|
|
+ const QStringList exclude_widgets_list = {"QScrollBar"};
|
|
|
+
|
|
|
+ if (exclude_widgets_list.indexOf(widget->metaObject()->className()) == -1) {
|
|
|
+ widget->installEventFilter(this);
|
|
|
+ }
|
|
|
|
|
|
foreach (QObject* child, widget->children()) {
|
|
|
setEventFilterRecursive(child);
|