From 6b291b6515825f4ce0e09df5dec7ea1b619b63a7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Mar 2014 00:39:58 +0300 Subject: improve a bit different code. --- src/gui/widgets/slider.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/gui/widgets/slider.h') diff --git a/src/gui/widgets/slider.h b/src/gui/widgets/slider.h index 0b900e230..3fbb66a5c 100644 --- a/src/gui/widgets/slider.h +++ b/src/gui/widgets/slider.h @@ -145,8 +145,6 @@ class Slider final : public Widget, void keyPressed(KeyEvent& keyEvent) override final; - void setValue2(const double value); - /** * Sets the scale of the slider. * @@ -315,10 +313,6 @@ class Slider final : public Widget, static ImageRect buttons[2]; static float mAlpha; static int mInstances; - /** - * True if the slider is dragged, false otherwise. - */ - bool mDragged; /** * Holds the current selected value. @@ -331,11 +325,6 @@ class Slider final : public Widget, */ double mStepLength; - /** - * Holds the length of the marker. - */ - int mMarkerLength; - /** * Holds the start value of the scale. */ @@ -353,6 +342,17 @@ class Slider final : public Widget, Orientation mOrientation; ImageCollection *mVertexes; + + /** + * Holds the length of the marker. + */ + int mMarkerLength; + + /** + * True if the slider is dragged, false otherwise. + */ + bool mDragged; + bool mHasMouse; bool mRedraw; }; -- cgit v1.2.3-60-g2f50