35 #include <QVBoxLayout>
36 #include <QHelpEngine>
37 #include <QHelpSearchEngine>
38 #include <QHelpSearchQueryWidget>
39 #include <QHelpSearchResultWidget>
49 mVerticalLayout(new QVBoxLayout(this)),
52 this->setLayout(mVerticalLayout);
53 mVerticalLayout->setMargin(0);
55 helpSearchEngine =
new QHelpSearchEngine(mEngine->engine());
58 connect(helpSearchEngine, SIGNAL(searchingStarted()),
this, SLOT(
searchingIsStarted()));
59 connect(helpSearchEngine, SIGNAL(searchingFinished(
int)),
this, SLOT(
searchingIsFinished(
int)));
61 mVerticalLayout->addWidget(helpSearchEngine->queryWidget());
62 mVerticalLayout->addWidget(helpSearchEngine->resultWidget());
64 connect(helpSearchEngine->queryWidget(), SIGNAL(
search()),
this, SLOT(
search()));
66 helpSearchEngine->reindexDocumentation();
68 connect(helpSearchEngine->resultWidget(),
75 QList<QHelpSearchQuery> query = helpSearchEngine->queryWidget()->query();
76 helpSearchEngine->search(query);
boost::shared_ptr< HelpEngine > HelpEnginePtr