From 9639a3f777f7531f13a9d903c4208de0773c09cb Mon Sep 17 00:00:00 2001 From: sgourdas Date: Wed, 20 Mar 2024 23:53:35 +0200 Subject: [PATCH] Always return false on MainWindow eventFilter --- src/mainwindow.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 615288b..ab70c41 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -110,14 +110,12 @@ bool MainWindow::eventFilter(QObject* /*object*/, QEvent* event) const auto mouseEvent = static_cast(event); const int tabRegion = getTabBar()->height() + getTopWidget()->height() + 30; int clickY = portutils::getY(*mouseEvent); - // We don't have to check for visibilty as calling hide() on a hidden widget, or show() on a non-hidden widget is a no-op if (clickY == 0) { showTabAndTop(); } else if(clickY >= tabRegion) { hideTabAndTop(); } - return true; } return false; }