diff options
| author | 2008-06-24 17:13:50 +0000 | |
|---|---|---|
| committer | 2008-06-24 17:13:50 +0000 | |
| commit | 9535b7e60f36c155b699706532a08d0f6ccd37fb (patch) | |
| tree | 36ab148ebf496b004f4cf6461a0b2d07cbcc393a /src/modules/help/helpwidget.cpp | |
| parent | enabled cmake info on about module. test it with msvc (diff) | |
| download | KVIrc-9535b7e60f36c155b699706532a08d0f6ccd37fb.tar.gz KVIrc-9535b7e60f36c155b699706532a08d0f6ccd37fb.tar.bz2 KVIrc-9535b7e60f36c155b699706532a08d0f6ccd37fb.zip | |
fixed help module for win32/mingw (and probably msvc too)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1936 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/help/helpwidget.cpp')
| -rw-r--r-- | src/modules/help/helpwidget.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/modules/help/helpwidget.cpp b/src/modules/help/helpwidget.cpp index 482b7ad92..9e5b7e3d6 100644 --- a/src/modules/help/helpwidget.cpp +++ b/src/modules/help/helpwidget.cpp @@ -36,7 +36,8 @@ #include <QLineEdit> #include <QToolTip> #include <QTimer> -#include <QClipboard> +#include <QClipboard>
+#include <QDir> extern Index * g_pDocIndex; extern KviPointerList<KviHelpWindow> * g_pHelpWindowList; @@ -95,8 +96,14 @@ KviHelpWidget::~KviHelpWidget() } void KviHelpWidget::showIndex() -{ - m_pTextBrowser->setSource(QUrl("index.html")); +{
+ QString szHelpDir; + QDir dirHelp;
+ + g_pApp->getGlobalKvircDirectory(szHelpDir,KviApp::Help);
+ dirHelp = QDir(szHelpDir);
+ + m_pTextBrowser->setSource(QUrl::fromLocalFile(dirHelp.absoluteFilePath("index.html"))); } void KviHelpWidget::resizeEvent(QResizeEvent *e) |
