diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:07:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:07:25 +0300 |
commit | e9fb9da5bf17d3402781eb5205be7d2f794887ee (patch) | |
tree | 729a7932fab668bcc2de180ebfe287e811f8e136 /src/gui/widgets/textpreview.h | |
parent | 00ec60c1c0c3db8e3602e85dd152106f59f0c0e2 (diff) | |
download | plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.gz plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.bz2 plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.xz plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.zip |
Add strong typed bool Opaque.
Diffstat (limited to 'src/gui/widgets/textpreview.h')
-rw-r--r-- | src/gui/widgets/textpreview.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/textpreview.h b/src/gui/widgets/textpreview.h index e32b911e7..ccd552a57 100644 --- a/src/gui/widgets/textpreview.h +++ b/src/gui/widgets/textpreview.h @@ -25,6 +25,8 @@ #include "gui/widgets/widget.h" +#include "enums/simpletypes/opaque.h" + #include "localconsts.h" /** @@ -110,7 +112,7 @@ class TextPreview final : public Widget * * @param opaque Whether the widget should be opaque or not */ - void setOpaque(const bool opaque) + void setOpaque(const Opaque opaque) { mOpaque = opaque; } /** @@ -118,7 +120,7 @@ class TextPreview final : public Widget * is shown below the widget) */ bool isOpaque() const A_WARN_UNUSED - { return mOpaque; } + { return mOpaque == Opaque_true; } void adjustSize(); @@ -134,7 +136,7 @@ class TextPreview final : public Widget static float mAlpha; static Skin *mSkin; bool mTextAlpha; - bool mOpaque; + Opaque mOpaque; bool mShadow; bool mOutline; }; |