diff options
author | kh1 <[email protected]> | 2010-03-23 17:52:28 +0100 |
---|---|---|
committer | kh1 <[email protected]> | 2010-03-23 18:13:10 +0100 |
commit | d248a7ddbffc5ea056e2b4312a3ebf8875499b72 (patch) | |
tree | b24efbef0be677bd0b7c5d7a49c109b111ca1c93 /src/shared/help/indexwindow.cpp | |
parent | 10a3699ca1ec18ee7bc266a66e7de5b87b376c5f (diff) |
Make use of the now available gui help engine.
Diffstat (limited to 'src/shared/help/indexwindow.cpp')
-rw-r--r-- | src/shared/help/indexwindow.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/shared/help/indexwindow.cpp b/src/shared/help/indexwindow.cpp index 0344383740c..498d9d5c6a2 100644 --- a/src/shared/help/indexwindow.cpp +++ b/src/shared/help/indexwindow.cpp @@ -27,8 +27,9 @@ ** **************************************************************************/ -#include "indexwindow.h" #include "centralwidget.h" +#include "helpmanager.h" +#include "indexwindow.h" #include "topicchooser.h" #include <QtGui/QLayout> @@ -46,7 +47,6 @@ IndexWindow::IndexWindow(QHelpEngine *helpEngine, QWidget *parent) : QWidget(parent) , m_searchLineEdit(0) , m_indexWidget(0) - , m_helpEngine(helpEngine) { QVBoxLayout *layout = new QVBoxLayout(this); QLabel *l = new QLabel(tr("&Look for:")); @@ -61,11 +61,12 @@ IndexWindow::IndexWindow(QHelpEngine *helpEngine, QWidget *parent) layout->setMargin(4); layout->addWidget(m_searchLineEdit); - m_indexWidget = m_helpEngine->indexWidget(); + QHelpEngine *engine = &Help::HelpManager::helpEngine(); + m_indexWidget = engine->indexWidget(); m_indexWidget->installEventFilter(this); - connect(m_helpEngine->indexModel(), SIGNAL(indexCreationStarted()), this, + connect(engine->indexModel(), SIGNAL(indexCreationStarted()), this, SLOT(disableSearchLineEdit())); - connect(m_helpEngine->indexModel(), SIGNAL(indexCreated()), this, + connect(engine->indexModel(), SIGNAL(indexCreated()), this, SLOT(enableSearchLineEdit())); connect(m_indexWidget, SIGNAL(linkActivated(QUrl, QString)), this, SIGNAL(linkActivated(QUrl))); |