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/textbox.cpp | |
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/textbox.cpp')
-rw-r--r-- | src/gui/widgets/textbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp index c9720072f..479349503 100644 --- a/src/gui/widgets/textbox.cpp +++ b/src/gui/widgets/textbox.cpp @@ -84,7 +84,7 @@ TextBox::TextBox(const Widget2 *const widget) : mCaretRow(0), mMinWidth(getWidth()), mEditable(true), - mOpaque(true) + mOpaque(Opaque_true) { mAllowLogic = false; setText(""); @@ -95,7 +95,7 @@ TextBox::TextBox(const Widget2 *const widget) : adjustSize(); mForegroundColor = getThemeColor(ThemeColorId::TEXTBOX); - setOpaque(false); + setOpaque(Opaque_false); setFrameSize(0); } @@ -445,7 +445,7 @@ void TextBox::keyPressed(KeyEvent& event) void TextBox::draw(Graphics *const graphics) { BLOCK_START("TextBox::draw") - if (mOpaque) + if (mOpaque == Opaque_true) { graphics->setColor(mBackgroundColor); graphics->fillRectangle(Rect(0, 0, getWidth(), getHeight())); |