From e9fb9da5bf17d3402781eb5205be7d2f794887ee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Sep 2016 19:07:25 +0300 Subject: Add strong typed bool Opaque. --- src/gui/widgets/browserbox.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/browserbox.h') diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index 74acc8847..c578c2633 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -26,6 +26,8 @@ #include "listeners/mouselistener.h" +#include "enums/simpletypes/opaque.h" + #include "gui/widgets/linepart.h" #include "gui/widgets/widget.h" @@ -66,7 +68,7 @@ class BrowserBox final : public Widget, */ BrowserBox(const Widget2 *const widget, const unsigned int mode, - const bool opaque, + const Opaque opaque, const std::string &skin); A_DELETE_COPY(BrowserBox) @@ -84,7 +86,7 @@ class BrowserBox final : public Widget, /** * Sets the BrowserBox opacity. */ - void setOpaque(bool opaque) + void setOpaque(Opaque opaque) { mOpaque = opaque; } /** @@ -238,7 +240,7 @@ class BrowserBox final : public Widget, Color mHyperLinkColor; Color mColors[2][COLORS_MAX]; - bool mOpaque; + Opaque mOpaque; bool mUseLinksAndUserColors; bool mUseEmotes; bool mAlwaysUpdate; -- cgit v1.2.3-70-g09d2