diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-15 00:26:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-15 00:26:35 +0300 |
commit | ff516e9f60e9554e8938d04192a8e5ec9efb5647 (patch) | |
tree | b134dd0202377c5b182f62870b983fe078700e28 /src/gui/widgets | |
parent | 269f642099ec8e4c6bcf735496c32ee8019aaf1b (diff) | |
download | plus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.gz plus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.bz2 plus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.xz plus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.zip |
fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/desktop.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/scrollarea.h | 4 | ||||
-rw-r--r-- | src/gui/widgets/textbox.h | 2 | ||||
-rw-r--r-- | src/gui/widgets/window.h | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index 8504e7c2a..0ff1b17c9 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -201,7 +201,7 @@ void Desktop::setBestFittingWallpaper() } } -void Desktop::handleLink(const std::string &link, MouseEvent *event) +void Desktop::handleLink(const std::string &link, MouseEvent *event A_UNUSED) { if (link == "copyright") inputManager.executeAction(Input::KEY_WINDOW_ABOUT); diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index e2421dc93..47b8b0985 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -509,7 +509,7 @@ void ScrollArea::calcButton(Graphics *const graphics, } } -void ScrollArea::drawVBar(Graphics *const graphics) +void ScrollArea::drawVBar(Graphics *const graphics) const { const Rect &dim = getVerticalBarDimension(); @@ -559,7 +559,7 @@ void ScrollArea::calcVBar(Graphics *const graphics) } } -void ScrollArea::drawHBar(Graphics *const graphics) +void ScrollArea::drawHBar(Graphics *const graphics) const { const Rect &dim = getHorizontalBarDimension(); diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h index 6a91ac0f8..0b0cae2c3 100644 --- a/src/gui/widgets/scrollarea.h +++ b/src/gui/widgets/scrollarea.h @@ -446,8 +446,8 @@ class ScrollArea final : public BasicContainer, void drawButton(Graphics *const graphics, const BUTTON_DIR dir); void calcButton(Graphics *const graphics, const BUTTON_DIR dir); - void drawVBar(Graphics *const graphics); - void drawHBar(Graphics *const graphics); + void drawVBar(Graphics *const graphics) const; + void drawHBar(Graphics *const graphics) const; void drawVMarker(Graphics *const graphics); void drawHMarker(Graphics *const graphics); diff --git a/src/gui/widgets/textbox.h b/src/gui/widgets/textbox.h index 8de0fe0bf..e5cfbc7c9 100644 --- a/src/gui/widgets/textbox.h +++ b/src/gui/widgets/textbox.h @@ -255,7 +255,7 @@ class TextBox final : public Widget, * @return True if the text box is opaque, false otherwise. * @see setOpaque */ - bool isOpaque() + bool isOpaque() const { return mOpaque; } /** diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 3a9bf2157..2c4ee5e5f 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -498,7 +498,7 @@ class Window : public BasicContainer2, * @return The title bar height. * @see setTitleBarHeight */ - unsigned int getTitleBarHeight() + unsigned int getTitleBarHeight() const { return mTitleBarHeight; } /** |