aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/helpwindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-06-24 17:13:50 +0000
committerGravatar Fabio Bas2008-06-24 17:13:50 +0000
commit9535b7e60f36c155b699706532a08d0f6ccd37fb (patch)
tree36ab148ebf496b004f4cf6461a0b2d07cbcc393a /src/modules/help/helpwindow.cpp
parentenabled cmake info on about module. test it with msvc (diff)
downloadKVIrc-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/helpwindow.cpp')
-rw-r--r--src/modules/help/helpwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp
index fd0d0739c..90ee57f8b 100644
--- a/src/modules/help/helpwindow.cpp
+++ b/src/modules/help/helpwindow.cpp
@@ -239,7 +239,7 @@ void KviHelpWindow::showIndexTopic()
{
if (m_pIndexSearch->text().isEmpty()|| !m_pIndexListWidget->selectedItems().count()) return;
int i=g_pDocIndex->titlesList().indexOf(m_pIndexListWidget->selectedItems().at(0)->text());
- textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ]));
+ textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ]));
}
void KviHelpWindow::searchInIndex( const QString &s )
@@ -265,14 +265,14 @@ void KviHelpWindow::indexSelected ( QListWidgetItem *item )
{
if (!item) return;
int i=g_pDocIndex->titlesList().indexOf(item->text());
- textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ]));
+ textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ]));
}
void KviHelpWindow::searchSelected ( QListWidgetItem *item )
{
if (!item) return;
int i=g_pDocIndex->titlesList().findIndex(item->text());
- textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ]));
+ textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ]));
}
QPixmap * KviHelpWindow::myIconPtr()