summaryrefslogtreecommitdiff
path: root/src/gui/widgets/sliderlist.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-22 21:34:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-22 21:34:02 +0300
commit33382dded24e2cfec454ff204a8fffbff9bd0fed (patch)
treea685f7e5056059a0c4013b7e53521e96904e2d43 /src/gui/widgets/sliderlist.cpp
parentffa8c186220a10549b7d3d545497a165526c097d (diff)
downloadplus-33382dded24e2cfec454ff204a8fffbff9bd0fed.tar.gz
plus-33382dded24e2cfec454ff204a8fffbff9bd0fed.tar.bz2
plus-33382dded24e2cfec454ff204a8fffbff9bd0fed.tar.xz
plus-33382dded24e2cfec454ff204a8fffbff9bd0fed.zip
fix sliderlist next/previous buttons.
Diffstat (limited to 'src/gui/widgets/sliderlist.cpp')
-rw-r--r--src/gui/widgets/sliderlist.cpp7
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();
}