mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Trigger Slider::SliderReleased signal on JM_BUTTONRELEASED message.
This commit is contained in:
parent
47db060bc5
commit
91b0a89a99
@ -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()
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user