diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2021-09-21 17:02:48 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-22 21:35:42 +0200 |
commit | 92fffc3abc50dfd6a7cf6788984f712cece0b7d8 (patch) | |
tree | 2ae0356cb4ee078bdba20c47b846d0c40c45a6c2 /Userland/Libraries/LibGUI/ValueSlider.h | |
parent | d47e431d54b4facd77703f8efd3b68e2eedc4835 (diff) | |
download | serenity-92fffc3abc50dfd6a7cf6788984f712cece0b7d8.zip |
LibGUI: Rename CallOnChange => AllowCallback and implement elsewhere
This is a helpful option to prevent unwanted side effects, distinguish
between user and programmatic input, etc. Sliders and SpinBoxes were
implementing it idiosyncratically, so let's generalize the API and
give Buttons and TextEditors the same ability.
Diffstat (limited to 'Userland/Libraries/LibGUI/ValueSlider.h')
-rw-r--r-- | Userland/Libraries/LibGUI/ValueSlider.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/ValueSlider.h b/Userland/Libraries/LibGUI/ValueSlider.h index b9a3c91f3c..8fa3e8c2cc 100644 --- a/Userland/Libraries/LibGUI/ValueSlider.h +++ b/Userland/Libraries/LibGUI/ValueSlider.h @@ -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, CallOnChange call_on_change = CallOnChange::Yes) override; + virtual void set_value(int value, AllowCallback = AllowCallback::Yes) override; protected: virtual void paint_event(PaintEvent&) override; |