diff options
Diffstat (limited to 'src/modules/help')
| -rw-r--r-- | src/modules/help/helpwindow.cpp | 6 | ||||
| -rw-r--r-- | src/modules/help/libkvihelp.cpp | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp index 8dfeefe09..abc3b24f1 100644 --- a/src/modules/help/helpwindow.cpp +++ b/src/modules/help/helpwindow.cpp @@ -231,7 +231,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::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchInIndex( const QString &s ) @@ -255,14 +255,14 @@ void KviHelpWindow::indexSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().indexOf(item->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().indexOf(item->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } QPixmap * KviHelpWindow::myIconPtr() diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp index a4584d32e..ebb4f22d7 100644 --- a/src/modules/help/libkvihelp.cpp +++ b/src/modules/help/libkvihelp.cpp @@ -134,8 +134,7 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) int i=g_pDocIndex->titlesList().indexOf(szParam); if (i!=-1) { - szDoc=QUrl(g_pDocIndex->documentList()[ i ]).toLocalFile(); -// szDoc=(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])).path(); + szDoc=QUrl(g_pDocIndex->documentList()[ i ]).toLocalFile(); f->setFile(szDoc); } } |
