summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-27 18:38:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-27 18:38:18 +0300
commit77f09ee1726fa3d8b14df52ba8f41ffd9926ad18 (patch)
tree34bd4d55e1a0eef8d7f3c49bb48ac97a2eadf28a /src/gui/widgets/browserbox.h
parent0dbb4c4ba8044aaf0346706ba735e58b4cfc13f7 (diff)
downloadmv-77f09ee1726fa3d8b14df52ba8f41ffd9926ad18.tar.gz
mv-77f09ee1726fa3d8b14df52ba8f41ffd9926ad18.tar.bz2
mv-77f09ee1726fa3d8b14df52ba8f41ffd9926ad18.tar.xz
mv-77f09ee1726fa3d8b14df52ba8f41ffd9926ad18.zip
Improve a bit browserbox.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r--src/gui/widgets/browserbox.h15
1 files changed, 8 insertions, 7 deletions
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();