LibGUI: Use Resize{Column,Row} cursor for Splitter and AbstractTableView

This commit is contained in:
Linus Groh 2020-07-07 19:21:57 +01:00 committed by Andreas Kling
parent 62866208ee
commit b86a59ec05
2 changed files with 2 additions and 2 deletions

View file

@ -295,7 +295,7 @@ void AbstractTableView::mousemove_event(MouseEvent& event)
bool found_hovered_header = false;
for (int i = 0; i < column_count; ++i) {
if (column_resize_grabbable_rect(i).contains(horizontally_adjusted_position)) {
window()->set_override_cursor(StandardCursor::ResizeHorizontal);
window()->set_override_cursor(StandardCursor::ResizeColumn);
set_hovered_header_index(-1);
return;
}

View file

@ -60,7 +60,7 @@ void Splitter::resize_event(ResizeEvent& event)
void Splitter::enter_event(Core::Event&)
{
window()->set_override_cursor(m_orientation == Orientation::Horizontal ? StandardCursor::ResizeHorizontal : StandardCursor::ResizeVertical);
window()->set_override_cursor(m_orientation == Orientation::Horizontal ? StandardCursor::ResizeColumn : StandardCursor::ResizeRow);
}
void Splitter::leave_event(Core::Event&)