mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:25:06 +00:00
LibGUI: Implement the virtual IconView::scroll_into_view()
This is virtual in AbstractView so let's not shadow it with an IconView specific variant.
This commit is contained in:
parent
72443bd1ab
commit
27e86c03da
2 changed files with 6 additions and 3 deletions
|
@ -62,9 +62,11 @@ void IconView::select_all()
|
|||
}
|
||||
}
|
||||
|
||||
void IconView::scroll_into_view(const ModelIndex& index, Orientation orientation)
|
||||
void IconView::scroll_into_view(const ModelIndex& index, bool scroll_horizontally, bool scroll_vertically)
|
||||
{
|
||||
ScrollableWidget::scroll_into_view(item_rect(index.row()), orientation);
|
||||
if (!index.is_valid())
|
||||
return;
|
||||
ScrollableWidget::scroll_into_view(item_rect(index.row()), scroll_horizontally, scroll_vertically);
|
||||
}
|
||||
|
||||
void IconView::resize_event(ResizeEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue