From 85a816e4448fe0c6cf349bd846130ed3f1aeb22e Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 15 Sep 2020 18:14:13 +0200 Subject: [PATCH] Don't use setFilterRegularExpression() in Qt 5 Otherwise showing child nodes when their parent matches does not work with Qt 5. Interestingly it *does* work with Qt 6. That's especially strange because the code of the filter model responsible for showing child nodes when their parents match should work completely independent of the particular filter being used. --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 3b2565a..91111af 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1002,7 +1002,7 @@ void MainWindow::removeEntry() void MainWindow::applyFilter(const QString &filterText) { m_entryFilterModel-> -#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) +#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) setFilterRegularExpression #else setFilterRegExp