35 contentModel =
new QHelpContentModel(helpEngineCore);
37 indexModel =
new QHelpIndexModel(m_helpEngineCore);
39 const auto applyCurrentFilter = [
this] {
45 const auto scheduleApplyCurrentFilter = [
this, applyCurrentFilter] {
53 QTimer::singleShot(0, m_helpEngineCore, applyCurrentFilter);
56 QObject::connect(m_helpEngineCore, &QHelpEngineCore::setupFinished,
57 m_helpEngineCore, scheduleApplyCurrentFilter);
58 QObject::connect(m_helpEngineCore, &QHelpEngineCore::currentFilterChanged,
59 m_helpEngineCore, scheduleApplyCurrentFilter);
60 QObject::connect(m_helpEngineCore->filterEngine(), &QHelpFilterEngine::filterActivated,
61 m_helpEngineCore, scheduleApplyCurrentFilter);
110QHelpContentWidget *QHelpEngine::contentWidget()
112 if (!d->contentWidget) {
113 d->contentWidget =
new QHelpContentWidget;
114 d->contentWidget->setModel(d->contentModel);
116 connect(d->contentModel, &QHelpContentModel::contentsCreationStarted,
this, [
this] {
117 d->contentWidget->setCursor(Qt::WaitCursor);
119 connect(d->contentModel, &QHelpContentModel::contentsCreated,
this, [
this] {
120 d->contentWidget->unsetCursor();
124 return d->contentWidget;
130QHelpIndexWidget *QHelpEngine::indexWidget()
132 if (!d->indexWidget) {
133 d->indexWidget =
new QHelpIndexWidget;
134 d->indexWidget->setModel(d->indexModel);
136 connect(d->indexModel, &QHelpIndexModel::indexCreationStarted,
this, [
this] {
137 d->indexWidget->setCursor(Qt::WaitCursor);
139 connect(d->indexModel, &QHelpIndexModel::indexCreated,
this, [
this] {
140 d->indexWidget->unsetCursor();
144 return d->indexWidget;