aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/help/contentwindow.cpp
diff options
context:
space:
mode:
authorkh1 <[email protected]>2010-03-23 17:52:28 +0100
committerkh1 <[email protected]>2010-03-23 18:13:10 +0100
commitd248a7ddbffc5ea056e2b4312a3ebf8875499b72 (patch)
treeb24efbef0be677bd0b7c5d7a49c109b111ca1c93 /src/shared/help/contentwindow.cpp
parent10a3699ca1ec18ee7bc266a66e7de5b87b376c5f (diff)
Make use of the now available gui help engine.
Diffstat (limited to 'src/shared/help/contentwindow.cpp')
-rw-r--r--src/shared/help/contentwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shared/help/contentwindow.cpp b/src/shared/help/contentwindow.cpp
index bd5b74496b8..b956110ef2e 100644
--- a/src/shared/help/contentwindow.cpp
+++ b/src/shared/help/contentwindow.cpp
@@ -28,7 +28,9 @@
**************************************************************************/
#include "contentwindow.h"
+
#include "centralwidget.h"
+#include "helpmanager.h"
#include <QtGui/QLayout>
#include <QtGui/QFocusEvent>
@@ -38,11 +40,10 @@
#include <QtHelp/QHelpContentWidget>
ContentWindow::ContentWindow(QHelpEngine *helpEngine)
- : m_helpEngine(helpEngine)
- , m_contentWidget(0)
+ : m_contentWidget(0)
, m_expandDepth(-2)
{
- m_contentWidget = m_helpEngine->contentWidget();
+ m_contentWidget = (&Help::HelpManager::helpEngine())->contentWidget();
m_contentWidget->installEventFilter(this);
m_contentWidget->viewport()->installEventFilter(this);
m_contentWidget->setContextMenuPolicy(Qt::CustomContextMenu);