diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-25 19:11:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-25 19:32:30 +0300 |
commit | 529335b0e534c86cb1e4d735d9f4ffd576da728b (patch) | |
tree | c539b67679d9b51e0f75215755e6f9581e5cd688 /src | |
parent | c87a4da5e7a273a38a04b1eab8be9f69cc5bc492 (diff) | |
download | mv-529335b0e534c86cb1e4d735d9f4ffd576da728b.tar.gz mv-529335b0e534c86cb1e4d735d9f4ffd576da728b.tar.bz2 mv-529335b0e534c86cb1e4d735d9f4ffd576da728b.tar.xz mv-529335b0e534c86cb1e4d735d9f4ffd576da728b.zip |
Use browserbox for quest text in quests window.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/questswindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/questswindow.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp index 1eb2da841..269f2aab9 100644 --- a/src/gui/windows/questswindow.cpp +++ b/src/gui/windows/questswindow.cpp @@ -37,13 +37,13 @@ #include "gui/windows/setupwindow.h" #include "gui/widgets/button.h" +#include "gui/widgets/browserbox.h" #include "gui/widgets/containerplacer.h" #include "gui/widgets/createwidget.h" #include "gui/widgets/layout.h" #include "gui/widgets/extendedlistbox.h" #include "gui/widgets/itemlinkhandler.h" #include "gui/widgets/scrollarea.h" -#include "gui/widgets/staticbrowserbox.h" #include "utils/delete2.h" #include "utils/foreach.h" @@ -71,7 +71,7 @@ QuestsWindow::QuestsWindow() : fromBool(getOptionBool("showlistbackground"), Opaque), "quests_list_background.xml")), mItemLinkHandler(new ItemLinkHandler), - mText(new StaticBrowserBox(this, Opaque_true, + mText(new BrowserBox(this, Opaque_true, "browserbox.xml")), mTextScrollArea(new ScrollArea(this, mText, fromBool(getOptionBool("showtextbackground"), Opaque), diff --git a/src/gui/windows/questswindow.h b/src/gui/windows/questswindow.h index 680ae6271..fd4175754 100644 --- a/src/gui/windows/questswindow.h +++ b/src/gui/windows/questswindow.h @@ -32,12 +32,12 @@ #include "resources/questvar.h" class Being; +class BrowserBox; class Button; class ExtendedListBox; class ItemLinkHandler; class Map; class ScrollArea; -class StaticBrowserBox; class QuestsModel; struct QuestEffect; @@ -81,7 +81,7 @@ class QuestsWindow final : public Window, ExtendedListBox *mQuestsListBox A_NONNULLPOINTER; ScrollArea *mQuestScrollArea A_NONNULLPOINTER; ItemLinkHandler *mItemLinkHandler A_NONNULLPOINTER; - StaticBrowserBox *mText A_NONNULLPOINTER; + BrowserBox *mText A_NONNULLPOINTER; ScrollArea *mTextScrollArea A_NONNULLPOINTER; Button *mCloseButton A_NONNULLPOINTER; Image *mCompleteIcon; |