Browse Source

Fixed QScrollbar

Ivan Arkhipov 4 years ago
parent
commit
691964cba1
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/Legacy/widgets/mainwindow.cpp

+ 5 - 1
src/Legacy/widgets/mainwindow.cpp

@@ -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);