summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ValueSlider.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2022-03-29 16:01:59 +0300
committerAndreas Kling <kling@serenityos.org>2022-03-29 17:45:36 +0200
commit1d522e4b4ce27e1fe5ad42fc9f2538e0212442dd (patch)
tree7dbc7c5ea8c6187504de678ba76b6c4d64bc1259 /Userland/Libraries/LibGUI/ValueSlider.h
parentab4c73746c4ebe063e3d6a1533d97908b102dd35 (diff)
downloadserenity-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.h2
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;