14 #include <QVBoxLayout>
15 #include <QHelpEngine>
16 #include <QHelpSearchEngine>
17 #include <QHelpSearchQueryWidget>
18 #include <QHelpSearchResultWidget>
28 mVerticalLayout(new QVBoxLayout(this)),
31 this->setLayout(mVerticalLayout);
32 mVerticalLayout->setMargin(0);
34 helpSearchEngine =
new QHelpSearchEngine(mEngine->engine());
37 connect(helpSearchEngine, SIGNAL(searchingStarted()),
this, SLOT(
searchingIsStarted()));
38 connect(helpSearchEngine, SIGNAL(searchingFinished(
int)),
this, SLOT(
searchingIsFinished(
int)));
40 mVerticalLayout->addWidget(helpSearchEngine->queryWidget());
41 mVerticalLayout->addWidget(helpSearchEngine->resultWidget());
43 connect(helpSearchEngine->queryWidget(), SIGNAL(
search()),
this, SLOT(
search()));
45 helpSearchEngine->reindexDocumentation();
47 connect(helpSearchEngine->resultWidget(),
54 QList<QHelpSearchQuery> query = helpSearchEngine->queryWidget()->query();
55 helpSearchEngine->search(query);