summaryrefslogtreecommitdiff
path: root/src/gui/windows/helpwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-26 21:47:37 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-26 21:47:37 +0300
commited3a977346009c22c30908a9e7b81f409d310b59 (patch)
tree0101284761788307a5c231fe0f0466810ee651a1 /src/gui/windows/helpwindow.cpp
parent4b517a69de505e5f3b0eec2e42d2f5bc5d913faa (diff)
downloadmanaverse-ed3a977346009c22c30908a9e7b81f409d310b59.tar.gz
manaverse-ed3a977346009c22c30908a9e7b81f409d310b59.tar.bz2
manaverse-ed3a977346009c22c30908a9e7b81f409d310b59.tar.xz
manaverse-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.cpp10
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);