From 77f09ee1726fa3d8b14df52ba8f41ffd9926ad18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 May 2015 18:38:18 +0300 Subject: Improve a bit browserbox. --- src/gui/widgets/browserbox.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/gui/widgets/browserbox.h') diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index 7769d6e9c..012c04dd7 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -84,7 +84,8 @@ class BrowserBox final : public Widget, /** * Sets the BrowserBox opacity. */ - void setOpaque(bool opaque); + void setOpaque(bool opaque) + { mOpaque = opaque; } /** * Sets the maximum numbers of rows in the browser box. 0 = no limit. @@ -169,19 +170,19 @@ class BrowserBox final : public Widget, bool hasRows() const A_WARN_UNUSED { return !mTextRows.empty(); } - void setAlwaysUpdate(bool n) + void setAlwaysUpdate(const bool n) { mAlwaysUpdate = n; } - void setProcessVars(bool n) + void setProcessVars(const bool n) { mProcessVars = n; } - void setEnableImages(bool n) + void setEnableImages(const bool n) { mEnableImages = n; } - void setEnableKeys(bool n) + void setEnableKeys(const bool n) { mEnableKeys = n; } - void setEnableTabs(bool n) + void setEnableTabs(const bool n) { mEnableTabs = n; } std::string getTextAtPos(const int x, const int y) const A_WARN_UNUSED; @@ -192,7 +193,7 @@ class BrowserBox final : public Widget, void setForegroundColorAll(const Color &color1, const Color &color2); - int getDataWidth() const + int getDataWidth() const A_WARN_UNUSED { return mDataWidth; } void moveSelectionUp(); -- cgit v1.2.3-60-g2f50