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

LibGUI: Rename AbstractSlider::on_value_changed => on_change

This matches other similar hook names.
This commit is contained in:
Andreas Kling 2020-12-30 15:11:46 +01:00
parent 3b445bc66a
commit cb67264f61
11 changed files with 21 additions and 21 deletions

View file

@ -71,7 +71,7 @@ LayerPropertiesWidget::LayerPropertiesWidget()
m_opacity_slider = opacity_container.add<GUI::HorizontalSlider>();
m_opacity_slider->set_fixed_height(20);
m_opacity_slider->set_range(0, 100);
m_opacity_slider->on_value_changed = [this](int value) {
m_opacity_slider->on_change = [this](int value) {
if (m_layer)
m_layer->set_opacity_percent(value);
};