From ed3a977346009c22c30908a9e7b81f409d310b59 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Sep 2016 21:47:37 +0300 Subject: Add support for links "news" and "copyright". Use for links in didyouknow window ItemLinkHandler. --- src/gui/windows/helpwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/windows/helpwindow.cpp') diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp index 54172e1ed..8629c878e 100644 --- a/src/gui/windows/helpwindow.cpp +++ b/src/gui/windows/helpwindow.cpp @@ -127,6 +127,16 @@ void HelpWindow::loadHelp(const std::string &helpFile) setVisible(Visible_true); } +void HelpWindow::loadHelpSimple(const std::string &helpFile) +{ + if (!checkPath(helpFile)) + return; + mBrowserBox->clearRows(); + loadFile(helpFile); + mScrollArea->setVerticalScrollAmount(0); + setVisible(Visible_true); +} + void HelpWindow::loadFile(std::string file) { trim(file); -- cgit v1.2.3-70-g09d2