summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-30 15:11:46 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-30 15:20:47 +0100
commitcb67264f6112b399b824bb878c7e8a3972fc75b0 (patch)
treee5fb51a3d430f4714bc9bef10d9def1d0995a774 /Libraries
parent3b445bc66ac8d15847e0ede434a9552eb11c1145 (diff)
downloadserenity-cb67264f6112b399b824bb878c7e8a3972fc75b0.zip
LibGUI: Rename AbstractSlider::on_value_changed => on_change
This matches other similar hook names.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibGUI/AbstractSlider.cpp4
-rw-r--r--Libraries/LibGUI/AbstractSlider.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/AbstractSlider.cpp b/Libraries/LibGUI/AbstractSlider.cpp
index 551b93126b..99400b44d2 100644
--- a/Libraries/LibGUI/AbstractSlider.cpp
+++ b/Libraries/LibGUI/AbstractSlider.cpp
@@ -82,8 +82,8 @@ void AbstractSlider::set_value(int value)
m_value = value;
update();
- if (on_value_changed)
- on_value_changed(m_value);
+ if (on_change)
+ on_change(m_value);
}
}
diff --git a/Libraries/LibGUI/AbstractSlider.h b/Libraries/LibGUI/AbstractSlider.h
index b61131cc21..db7d81b5fd 100644
--- a/Libraries/LibGUI/AbstractSlider.h
+++ b/Libraries/LibGUI/AbstractSlider.h
@@ -53,7 +53,7 @@ public:
void set_step(int step) { m_step = step; }
void set_page_step(int page_step);
- Function<void(int)> on_value_changed;
+ Function<void(int)> on_change;
protected:
explicit AbstractSlider(Orientation = Orientation::Vertical);