1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

LibGUI+Applications: Rename automatic scrolling timer functions

Renames on_automatic_scrolling_timer_fired() =>
	automatic_scrolling_timer_did_fire()

The 'on_' prefix is usually reserved for AK::Function hooks.

Renames set_automatic_scrolling_{active,timer}() =>
	set_automatic_scrolling_timer_active()

For consistency, accuracy, and header file A E S T H E T I C S
This commit is contained in:
thankyouverycool 2022-12-25 15:41:33 -05:00 committed by Andreas Kling
parent 5b02e6a46b
commit d938b9effe
10 changed files with 30 additions and 30 deletions

View file

@ -351,7 +351,7 @@ void AbstractView::mouseup_event(MouseEvent& event)
if (!model())
return;
set_automatic_scrolling_timer(false);
set_automatic_scrolling_timer_active(false);
if (m_might_drag) {
// We were unsure about unselecting items other than the current one
@ -796,7 +796,7 @@ void AbstractView::drag_move_event(DragEvent& event)
if (acceptable) {
m_automatic_scroll_delta = automatic_scroll_delta_from_position(event.position());
set_automatic_scrolling_timer(!m_automatic_scroll_delta.is_null());
set_automatic_scrolling_timer_active(!m_automatic_scroll_delta.is_null());
}
if (m_drop_candidate_index != new_drop_candidate_index) {
@ -814,10 +814,10 @@ void AbstractView::drag_leave_event(Event&)
update();
}
set_automatic_scrolling_timer(false);
set_automatic_scrolling_timer_active(false);
}
void AbstractView::on_automatic_scrolling_timer_fired()
void AbstractView::automatic_scrolling_timer_did_fire()
{
if (m_automatic_scroll_delta.is_null())
return;