Trigger Slider::SliderReleased signal on JM_BUTTONRELEASED message.

This commit is contained in:
David Capello 2010-12-08 13:26:19 -03:00
parent 47db060bc5
commit 91b0a89a99
2 changed files with 6 additions and 4 deletions

View File

@ -149,6 +149,8 @@ bool Slider::onProcessMessage(JMessage msg)
setSelected(false); setSelected(false);
releaseMouse(); releaseMouse();
setupSliderCursor(); setupSliderCursor();
onSliderReleased();
} }
break; break;
@ -244,9 +246,9 @@ void Slider::onChange()
Change(); // Emit Change signal Change(); // Emit Change signal
} }
void Slider::onButtonReleased() void Slider::onSliderReleased()
{ {
ButtonReleased(); SliderReleased();
} }
void Slider::setupSliderCursor() void Slider::setupSliderCursor()

View File

@ -24,7 +24,7 @@ public:
// Signals // Signals
Signal0<void> Change; Signal0<void> Change;
Signal0<void> ButtonReleased; Signal0<void> SliderReleased;
protected: protected:
// Events // Events
@ -33,7 +33,7 @@ protected:
// New events // New events
virtual void onChange(); virtual void onChange();
virtual void onButtonReleased(); virtual void onSliderReleased();
private: private:
void setupSliderCursor(); void setupSliderCursor();