summaryrefslogtreecommitdiff
path: root/src/gui/windows/questswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-17 19:07:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-17 19:07:25 +0300
commite9fb9da5bf17d3402781eb5205be7d2f794887ee (patch)
tree729a7932fab668bcc2de180ebfe287e811f8e136 /src/gui/windows/questswindow.cpp
parent00ec60c1c0c3db8e3602e85dd152106f59f0c0e2 (diff)
downloadmv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.gz
mv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.bz2
mv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.xz
mv-e9fb9da5bf17d3402781eb5205be7d2f794887ee.zip
Add strong typed bool Opaque.
Diffstat (limited to 'src/gui/windows/questswindow.cpp')
-rw-r--r--src/gui/windows/questswindow.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index a8c86e097..fd6678e55 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -68,11 +68,14 @@ QuestsWindow::QuestsWindow() :
mQuestsListBox(CREATEWIDGETR(ExtendedListBox,
this, mQuestsModel, "extendedlistbox.xml")),
mQuestScrollArea(new ScrollArea(this, mQuestsListBox,
- getOptionBool("showlistbackground"), "quests_list_background.xml")),
+ fromBool(getOptionBool("showlistbackground"), Opaque),
+ "quests_list_background.xml")),
mItemLinkHandler(new ItemLinkHandler),
- mText(new BrowserBox(this, BrowserBox::AUTO_WRAP, true, "browserbox.xml")),
+ mText(new BrowserBox(this, BrowserBox::AUTO_WRAP, Opaque_true,
+ "browserbox.xml")),
mTextScrollArea(new ScrollArea(this, mText,
- getOptionBool("showtextbackground"), "quests_text_background.xml")),
+ fromBool(getOptionBool("showtextbackground"), Opaque),
+ "quests_text_background.xml")),
// TRANSLATORS: quests window button
mCloseButton(new Button(this, _("Close"), "close", this)),
mCompleteIcon(Theme::getImageFromThemeXml("complete_icon.xml", "")),
@@ -104,7 +107,7 @@ QuestsWindow::QuestsWindow() :
mQuestsListBox->addActionListener(this);
mQuestScrollArea->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);
- mText->setOpaque(false);
+ mText->setOpaque(Opaque_false);
mText->setLinkHandler(mItemLinkHandler);
mTextScrollArea->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);
mQuestsListBox->setWidth(500);