mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibGUI+Applications: Rename Model::is_valid to is_within_range
The previous name did not describe what the function checked, and was easy to confuse with ModelIndex::is_valid.
This commit is contained in:
parent
9899addb1d
commit
16ac3bbfd7
8 changed files with 18 additions and 18 deletions
|
@ -115,7 +115,7 @@ Locator::Locator(Core::Object* parent)
|
|||
else
|
||||
new_index = m_suggestion_view->model()->index(0);
|
||||
|
||||
if (m_suggestion_view->model()->is_valid(new_index)) {
|
||||
if (m_suggestion_view->model()->is_within_range(new_index)) {
|
||||
m_suggestion_view->selection().set(new_index);
|
||||
m_suggestion_view->scroll_into_view(new_index, Orientation::Vertical);
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ Locator::Locator(Core::Object* parent)
|
|||
else
|
||||
new_index = m_suggestion_view->model()->index(0);
|
||||
|
||||
if (m_suggestion_view->model()->is_valid(new_index)) {
|
||||
if (m_suggestion_view->model()->is_within_range(new_index)) {
|
||||
m_suggestion_view->selection().set(new_index);
|
||||
m_suggestion_view->scroll_into_view(new_index, Orientation::Vertical);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue