diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-15 23:21:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-15 23:21:52 +0300 |
commit | de5b0753bd94e014f0e81fc676b21c251aabd326 (patch) | |
tree | 8d0e306c83bb72eb500e34fa41e6d10918544739 /src/gui/widgets | |
parent | 1e59c7e61474e89e08dcb40134d8be5f5ae76bf4 (diff) | |
download | manaverse-de5b0753bd94e014f0e81fc676b21c251aabd326.tar.gz manaverse-de5b0753bd94e014f0e81fc676b21c251aabd326.tar.bz2 manaverse-de5b0753bd94e014f0e81fc676b21c251aabd326.tar.xz manaverse-de5b0753bd94e014f0e81fc676b21c251aabd326.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/button.cpp | 15 | ||||
-rw-r--r-- | src/gui/widgets/tabs/tab.h | 2 | ||||
-rw-r--r-- | src/gui/widgets/window.h | 2 |
3 files changed, 12 insertions, 7 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index 98140e71c..634e47ce2 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -111,7 +111,8 @@ Button::Button(const Widget2 *const widget) : mDisabledColor(getThemeColor(ThemeColorId::BUTTON_DISABLED)), mDisabledColor2(getThemeColor(ThemeColorId::BUTTON_DISABLED_OUTLINE)), mHighlightedColor(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED)), - mHighlightedColor2(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), + mHighlightedColor2(getThemeColor( + ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), mPressedColor(getThemeColor(ThemeColorId::BUTTON_PRESSED)), mPressedColor2(getThemeColor(ThemeColorId::BUTTON_PRESSED_OUTLINE)), mImages(nullptr), @@ -154,7 +155,8 @@ Button::Button(const Widget2 *const widget, mDisabledColor(getThemeColor(ThemeColorId::BUTTON_DISABLED)), mDisabledColor2(getThemeColor(ThemeColorId::BUTTON_DISABLED_OUTLINE)), mHighlightedColor(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED)), - mHighlightedColor2(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), + mHighlightedColor2(getThemeColor( + ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), mPressedColor(getThemeColor(ThemeColorId::BUTTON_PRESSED)), mPressedColor2(getThemeColor(ThemeColorId::BUTTON_PRESSED_OUTLINE)), mImages(nullptr), @@ -203,7 +205,8 @@ Button::Button(const Widget2 *const widget, mDisabledColor(getThemeColor(ThemeColorId::BUTTON_DISABLED)), mDisabledColor2(getThemeColor(ThemeColorId::BUTTON_DISABLED_OUTLINE)), mHighlightedColor(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED)), - mHighlightedColor2(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), + mHighlightedColor2(getThemeColor( + ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), mPressedColor(getThemeColor(ThemeColorId::BUTTON_PRESSED)), mPressedColor2(getThemeColor(ThemeColorId::BUTTON_PRESSED_OUTLINE)), mImages(nullptr), @@ -252,7 +255,8 @@ Button::Button(const Widget2 *const widget, mDisabledColor(getThemeColor(ThemeColorId::BUTTON_DISABLED)), mDisabledColor2(getThemeColor(ThemeColorId::BUTTON_DISABLED_OUTLINE)), mHighlightedColor(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED)), - mHighlightedColor2(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), + mHighlightedColor2(getThemeColor( + ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), mPressedColor(getThemeColor(ThemeColorId::BUTTON_PRESSED)), mPressedColor2(getThemeColor(ThemeColorId::BUTTON_PRESSED_OUTLINE)), mImages(nullptr), @@ -301,7 +305,8 @@ Button::Button(const Widget2 *const widget, mDisabledColor(getThemeColor(ThemeColorId::BUTTON_DISABLED)), mDisabledColor2(getThemeColor(ThemeColorId::BUTTON_DISABLED_OUTLINE)), mHighlightedColor(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED)), - mHighlightedColor2(getThemeColor(ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), + mHighlightedColor2(getThemeColor( + ThemeColorId::BUTTON_HIGHLIGHTED_OUTLINE)), mPressedColor(getThemeColor(ThemeColorId::BUTTON_PRESSED)), mPressedColor2(getThemeColor(ThemeColorId::BUTTON_PRESSED_OUTLINE)), mImages(nullptr), diff --git a/src/gui/widgets/tabs/tab.h b/src/gui/widgets/tabs/tab.h index 69cb7cf95..65ebc57b7 100644 --- a/src/gui/widgets/tabs/tab.h +++ b/src/gui/widgets/tabs/tab.h @@ -122,7 +122,7 @@ class Tab notfinal : public BasicContainer, mTabColor = color1; mTabOutlineColor = color2; mRedraw = true; - } + } /** * Set the highlighted color for the tab's text. diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 84931b88d..e062de671 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -289,7 +289,7 @@ class Window notfinal : public BasicContainer2, void setSaveVisible(const bool save) { mSaveVisible = save; } - virtual void postInit() override + void postInit() override { mInit = true; } /** |