summaryrefslogtreecommitdiff
path: root/src/assistant/help/qhelpengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/assistant/help/qhelpengine.cpp')
-rw-r--r--src/assistant/help/qhelpengine.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/assistant/help/qhelpengine.cpp b/src/assistant/help/qhelpengine.cpp
index 28825e2ed..19e44cd91 100644
--- a/src/assistant/help/qhelpengine.cpp
+++ b/src/assistant/help/qhelpengine.cpp
@@ -44,6 +44,7 @@
#include "qhelpindexwidget.h"
#include "qhelpsearchengine.h"
#include "qhelpcollectionhandler_p.h"
+#include "qhelpfilterengine.h"
#include <QtCore/QDir>
#include <QtCore/QFile>
@@ -68,6 +69,8 @@ void QHelpEnginePrivate::init(const QString &collectionFile,
this, &QHelpEnginePrivate::scheduleApplyCurrentFilter);
connect(helpEngineCore, &QHelpEngineCore::currentFilterChanged,
this, &QHelpEnginePrivate::scheduleApplyCurrentFilter);
+ connect(helpEngineCore->filterEngine(), &QHelpFilterEngine::filterActivated,
+ this, &QHelpEnginePrivate::scheduleApplyCurrentFilter);
}
void QHelpEnginePrivate::scheduleApplyCurrentFilter()
@@ -85,8 +88,11 @@ void QHelpEnginePrivate::scheduleApplyCurrentFilter()
void QHelpEnginePrivate::applyCurrentFilter()
{
m_isApplyCurrentFilterScheduled = false;
- contentModel->createContents(currentFilter);
- indexModel->createIndex(currentFilter);
+ const QString filter = usesFilterEngine
+ ? q->filterEngine()->activeFilter()
+ : currentFilter;
+ contentModel->createContents(filter);
+ indexModel->createIndex(filter);
}
void QHelpEnginePrivate::setContentsWidgetBusy()