diff options
author | Itamar <itamar8910@gmail.com> | 2022-03-29 16:01:59 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-29 17:45:36 +0200 |
commit | 1d522e4b4ce27e1fe5ad42fc9f2538e0212442dd (patch) | |
tree | 7dbc7c5ea8c6187504de678ba76b6c4d64bc1259 /Userland/Libraries/LibGUI/ValueSlider.h | |
parent | ab4c73746c4ebe063e3d6a1533d97908b102dd35 (diff) | |
download | serenity-1d522e4b4ce27e1fe5ad42fc9f2538e0212442dd.zip |
LibGUI: Add DoClamp option to AbstractSlider::set_value()
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 546917fbdd..91aba6ab19 100644 --- a/Userland/Libraries/LibGUI/ValueSlider.h +++ b/Userland/Libraries/LibGUI/ValueSlider.h @@ -25,7 +25,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, AllowCallback = AllowCallback::Yes) override; + virtual void set_value(int value, AllowCallback = AllowCallback::Yes, DoClamp = DoClamp::Yes) override; protected: virtual void paint_event(PaintEvent&) override; |