From 115d3655e45c73545bd000765551da5f5e522fa9 Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Sat, 16 Mar 2024 15:19:48 +0100 Subject: [PATCH] deactivate event filter for autotests as it fails with qt6.6.2+ --- src/tests/testmanager.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/testmanager.cpp b/src/tests/testmanager.cpp index a5904b3c34..6732b55403 100644 --- a/src/tests/testmanager.cpp +++ b/src/tests/testmanager.cpp @@ -108,9 +108,11 @@ QString TestManager::execute(TestLevel level, LatexEditorView* edView, QCodeEdit bool allPassed=true; if (level!=TL_ALL) tr="There are skipped tests. Please rerun with --execute-all-tests\n\n"; - QCoreApplication *app = QCoreApplication::instance(); + /* Deactivate filter as it does not work with Qt6.6.2+ + * Original PR: #1055 + QCoreApplication *app = QCoreApplication::instance(); TestmanagerEventFilter eventFilter; - app->installNativeEventFilter(&eventFilter); + app->installNativeEventFilter(&eventFilter);*/ for (int i=0; i metaObject()->className()); qDebug()<metaObject()->className(); @@ -118,7 +120,7 @@ QString TestManager::execute(TestLevel level, LatexEditorView* edView, QCodeEdit tr+=res; if (!res.contains(", 0 failed, 0 skipped")) allPassed=false; } - app->removeNativeEventFilter(&eventFilter); + //app->removeNativeEventFilter(&eventFilter); tr+=QString("\nTotal testing time: %1 ms\n").arg(totalTestTime);