aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/HelpWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/help/HelpWindow.cpp')
-rw-r--r--src/modules/help/HelpWindow.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/modules/help/HelpWindow.cpp b/src/modules/help/HelpWindow.cpp
index 8c05461e0..f48778a36 100644
--- a/src/modules/help/HelpWindow.cpp
+++ b/src/modules/help/HelpWindow.cpp
@@ -268,11 +268,7 @@ void HelpWindow::startSearch()
setCursor(Qt::ArrowCursor);
}
-#ifdef COMPILE_WEBENGINE_SUPPORT
-QWebEngineView * HelpWindow::textBrowser()
-#else
QTextBrowser * HelpWindow::textBrowser()
-#endif
{
return m_pHelpWidget->textBrowser();
}
@@ -282,11 +278,7 @@ void HelpWindow::showIndexTopic()
if(m_pIndexSearch->text().isEmpty() || !m_pIndexListWidget->selectedItems().count())
return;
int i = g_pDocIndex->titlesList().indexOf(m_pIndexListWidget->selectedItems().at(0)->text());
-#ifdef COMPILE_WEBENGINE_SUPPORT
- textBrowser()->load(QUrl(g_pDocIndex->documentList()[i]));
-#else
textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[i]));
-#endif
}
void HelpWindow::searchInIndex(const QString & s)
@@ -311,11 +303,7 @@ void HelpWindow::indexSelected(QListWidgetItem * item)
if(!item)
return;
int i = g_pDocIndex->titlesList().indexOf(item->text());
-#ifdef COMPILE_WEBENGINE_SUPPORT
- textBrowser()->load(QUrl(g_pDocIndex->documentList()[i]));
-#else
textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[i]));
-#endif
}
void HelpWindow::searchSelected(QListWidgetItem * item)
@@ -323,11 +311,7 @@ void HelpWindow::searchSelected(QListWidgetItem * item)
if(!item)
return;
int i = g_pDocIndex->titlesList().indexOf(item->text());
-#ifdef COMPILE_WEBENGINE_SUPPORT
- textBrowser()->load(QUrl(g_pDocIndex->documentList()[i]));
-#else
textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[i]));
-#endif
}
QPixmap * HelpWindow::myIconPtr()