14 #include <QVBoxLayout> 15 #include <QHelpEngine> 16 #include <QHelpIndexWidget> 30 QVBoxLayout* layout =
new QVBoxLayout(
this);
32 this->setLayout(layout);
34 mFilterEdit =
new QLineEdit;
35 connect(mFilterEdit, &QLineEdit::textChanged,
this, &HelpIndexWidget::filterChanged);
37 layout->addWidget(
new QLabel(
"Look for:"));
38 layout->addWidget(mFilterEdit);
39 layout->addWidget(mEngine->engine()->indexWidget());
41 connect(mEngine->engine()->indexWidget(), &QHelpIndexWidget::linkActivated,
45 void HelpIndexWidget::filterChanged()
47 mEngine->engine()->indexWidget()->filterIndices(mFilterEdit->text());
boost::shared_ptr< HelpEngine > HelpEnginePtr
Namespace for all CustusX production code.