35 #include <QVBoxLayout> 36 #include <QHelpEngine> 37 #include <QHelpIndexWidget> 51 QVBoxLayout* layout =
new QVBoxLayout(
this);
53 this->setLayout(layout);
55 mFilterEdit =
new QLineEdit;
56 connect(mFilterEdit, &QLineEdit::textChanged,
this, &HelpIndexWidget::filterChanged);
58 layout->addWidget(
new QLabel(
"Look for:"));
59 layout->addWidget(mFilterEdit);
60 layout->addWidget(mEngine->engine()->indexWidget());
62 connect(mEngine->engine()->indexWidget(), &QHelpIndexWidget::linkActivated,
66 void HelpIndexWidget::filterChanged()
68 mEngine->engine()->indexWidget()->filterIndices(mFilterEdit->text());
boost::shared_ptr< HelpEngine > HelpEnginePtr
Namespace for all CustusX production code.