summaryrefslogtreecommitdiff
path: root/src/gui/questswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-31 23:27:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-31 23:27:47 +0300
commitd50d653686ba56ec206892da4c8d35a86178a182 (patch)
tree21ea765a536f3cf9cdb8e3a36a92ec64a7e9597f /src/gui/questswindow.cpp
parentf77a6feaee829ac7273faa119c07c6f3566deaef (diff)
downloadmv-d50d653686ba56ec206892da4c8d35a86178a182.tar.gz
mv-d50d653686ba56ec206892da4c8d35a86178a182.tar.bz2
mv-d50d653686ba56ec206892da4c8d35a86178a182.tar.xz
mv-d50d653686ba56ec206892da4c8d35a86178a182.zip
add links support to quests window.
Diffstat (limited to 'src/gui/questswindow.cpp')
-rw-r--r--src/gui/questswindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp
index fdda10562..5ffdf45c5 100644
--- a/src/gui/questswindow.cpp
+++ b/src/gui/questswindow.cpp
@@ -31,6 +31,7 @@
#include "gui/widgets/layouthelper.h"
#include "gui/widgets/extendedlistbox.h"
#include "gui/widgets/extendednamesmodel.h"
+#include "gui/widgets/itemlinkhandler.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/textfield.h"
@@ -87,6 +88,7 @@ QuestsWindow::QuestsWindow() :
mQuestsListBox(new ExtendedListBox(mQuestsModel)),
mQuestScrollArea(new ScrollArea(mQuestsListBox,
getOptionBool("showlistbackground"))),
+ mItemLinkHandler(new ItemLinkHandler),
mText(new BrowserBox(BrowserBox::AUTO_WRAP)),
mTextScrollArea(new ScrollArea(mText,
getOptionBool("showtextbackground"))),
@@ -109,6 +111,7 @@ QuestsWindow::QuestsWindow() :
mQuestScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mText->setOpaque(false);
+ mText->setLinkHandler(mItemLinkHandler);
mTextScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mQuestsListBox->setWidth(500);
if (gui->getNpcFont()->getHeight() < 20)