summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 14:35:53 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:20 +0300
commitaa507cb90f6fdfff35fb9d0f656c9568933b2898 (patch)
tree464a2b41923c1907154dac5ff50334086da5c179
parent4b0d72f3959911e5453683bbab75f08c2c84a6e9 (diff)
downloadmv-aa507cb90f6fdfff35fb9d0f656c9568933b2898.tar.gz
mv-aa507cb90f6fdfff35fb9d0f656c9568933b2898.tar.bz2
mv-aa507cb90f6fdfff35fb9d0f656c9568933b2898.tar.xz
mv-aa507cb90f6fdfff35fb9d0f656c9568933b2898.zip
fix const in declaration in guitable.
-rw-r--r--src/gui/widgets/guitable.cpp5
-rw-r--r--src/gui/widgets/guitable.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp
index 96aabc873..2de077f62 100644
--- a/src/gui/widgets/guitable.cpp
+++ b/src/gui/widgets/guitable.cpp
@@ -186,11 +186,6 @@ int GuiTable::getSelectedColumn() const
return mSelectedColumn;
}
-void GuiTable::setLinewiseSelection(const bool linewise)
-{
- mLinewiseMode = linewise;
-}
-
int GuiTable::getRowHeight() const
{
if (mModel)
diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h
index fdc089721..c8f82d3cc 100644
--- a/src/gui/widgets/guitable.h
+++ b/src/gui/widgets/guitable.h
@@ -107,7 +107,10 @@ public:
*
* \param linewise: Whether to enable linewise selection mode
*/
- void setLinewiseSelection(bool linewise);
+ void setLinewiseSelection(bool linewise)
+ {
+ mLinewiseMode = linewise;
+ }
// Inherited from Widget
void draw(gcn::Graphics* graphics) override;