1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

LibGUI: Add option to disable on_change call for sliders set_value()

This makes it possible to avoid messy situations where a slider
controlled value can be changed from multiple sources.
This commit is contained in:
David Isaksson 2021-09-18 12:16:57 +02:00 committed by Andreas Kling
parent 5a91f5b320
commit 3c8493c667
5 changed files with 12 additions and 6 deletions

View file

@ -24,7 +24,7 @@ public:
void set_suffix(String suffix) { m_suffix = move(suffix); }
void set_knob_style(KnobStyle knobstyle) { m_knob_style = knobstyle; }
virtual void set_value(int value) override;
virtual void set_value(int value, CallOnChange call_on_change = CallOnChange::Yes) override;
protected:
virtual void paint_event(PaintEvent&) override;