diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-22 21:34:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-22 21:34:02 +0300 |
commit | 33382dded24e2cfec454ff204a8fffbff9bd0fed (patch) | |
tree | a685f7e5056059a0c4013b7e53521e96904e2d43 /src/gui/widgets | |
parent | ffa8c186220a10549b7d3d545497a165526c097d (diff) | |
download | mv-33382dded24e2cfec454ff204a8fffbff9bd0fed.tar.gz mv-33382dded24e2cfec454ff204a8fffbff9bd0fed.tar.bz2 mv-33382dded24e2cfec454ff204a8fffbff9bd0fed.tar.xz mv-33382dded24e2cfec454ff204a8fffbff9bd0fed.zip |
fix sliderlist next/previous buttons.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/sliderlist.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/widgets/sliderlist.cpp b/src/gui/widgets/sliderlist.cpp index d41927f82..93fb22141 100644 --- a/src/gui/widgets/sliderlist.cpp +++ b/src/gui/widgets/sliderlist.cpp @@ -46,9 +46,6 @@ SliderList::SliderList(const Widget2 *const widget, mSelectedIndex(0) { setHeight(sliderHeight); - - mButtons[0] = new Button(this, "<", mPrevEventId, this); - mButtons[1] = new Button(this, ">", mNextEventId, this); } void SliderList::postInit(gcn::ActionListener *const listener, @@ -57,6 +54,9 @@ void SliderList::postInit(gcn::ActionListener *const listener, mPrevEventId = eventId + "_prev"; mNextEventId = eventId + "_next"; + mButtons[0] = new Button(this, "<", mPrevEventId, this); + mButtons[1] = new Button(this, ">", mNextEventId, this); + add(mButtons[0]); add(mLabel); add(mButtons[1]); @@ -83,7 +83,6 @@ void SliderList::updateAlpha() void SliderList::mouseWheelMovedUp(gcn::MouseEvent& mouseEvent) { - logger->log("SliderList::mouseWheelMovedUp"); setSelected(mSelectedIndex - 1); mouseEvent.consume(); } |