diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-26 21:47:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-26 21:47:37 +0300 |
commit | ed3a977346009c22c30908a9e7b81f409d310b59 (patch) | |
tree | 0101284761788307a5c231fe0f0466810ee651a1 /src/gui/windows/helpwindow.cpp | |
parent | 4b517a69de505e5f3b0eec2e42d2f5bc5d913faa (diff) | |
download | manaplus-ed3a977346009c22c30908a9e7b81f409d310b59.tar.gz manaplus-ed3a977346009c22c30908a9e7b81f409d310b59.tar.bz2 manaplus-ed3a977346009c22c30908a9e7b81f409d310b59.tar.xz manaplus-ed3a977346009c22c30908a9e7b81f409d310b59.zip |
Add support for links "news" and "copyright".
Use for links in didyouknow window ItemLinkHandler.
Diffstat (limited to 'src/gui/windows/helpwindow.cpp')
-rw-r--r-- | src/gui/windows/helpwindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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); |