diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-16 13:48:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-16 13:48:26 +0300 |
commit | e8842e4eadd6d4927db7eb0cc886855f762bcc10 (patch) | |
tree | 5b11833a58647029477fd62ffbf53fff03c5ef6e /src/gui/widgets/sliderlist.h | |
parent | 92da223a6a15298cd1a14c105a801ab0577670e1 (diff) | |
download | manaverse-e8842e4eadd6d4927db7eb0cc886855f762bcc10.tar.gz manaverse-e8842e4eadd6d4927db7eb0cc886855f762bcc10.tar.bz2 manaverse-e8842e4eadd6d4927db7eb0cc886855f762bcc10.tar.xz manaverse-e8842e4eadd6d4927db7eb0cc886855f762bcc10.zip |
improve sliderlist.
Diffstat (limited to 'src/gui/widgets/sliderlist.h')
-rw-r--r-- | src/gui/widgets/sliderlist.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/sliderlist.h b/src/gui/widgets/sliderlist.h index f9394b3d6..9209a4f55 100644 --- a/src/gui/widgets/sliderlist.h +++ b/src/gui/widgets/sliderlist.h @@ -40,7 +40,7 @@ class SliderList final : public Container, SliderList(const Widget2 *const widget, gcn::ListModel *const listModel = nullptr, gcn::ActionListener *const listener = nullptr, - std::string eventId = ""); + const std::string &eventId = ""); A_DELETE_COPY(SliderList) @@ -58,11 +58,11 @@ class SliderList final : public Container, void action(const gcn::ActionEvent &event) override; - void setSelectedString(std::string str); + void setSelectedString(const std::string &str); std::string getSelectedString() const A_WARN_UNUSED; - void setSelected(int idx); + void setSelected(const int idx); void adjustSize(); @@ -72,7 +72,7 @@ class SliderList final : public Container, protected: void updateLabel(); - int getMaxLabelWidth() A_WARN_UNUSED; + int getMaxLabelWidth() const A_WARN_UNUSED; Button *mButtons[2]; Label *mLabel; |