summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-11 14:50:30 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-11 14:50:30 +0200
commitcab422b441b212bfefe97eedc286f6a26ccbe370 (patch)
tree40540aa354276dd4cc18515fffe0dec53024fed5 /Libraries/LibGUI
parent69adaf330894cafd659c73b8409ba3b732343bb2 (diff)
downloadserenity-cab422b441b212bfefe97eedc286f6a26ccbe370.zip
LibGUI: Use widget override cursors in HeaderView
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/HeaderView.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Libraries/LibGUI/HeaderView.cpp b/Libraries/LibGUI/HeaderView.cpp
index 338aae0e81..5cf313e7d7 100644
--- a/Libraries/LibGUI/HeaderView.cpp
+++ b/Libraries/LibGUI/HeaderView.cpp
@@ -180,7 +180,7 @@ void HeaderView::mousemove_event(MouseEvent& event)
bool found_hovered_header = false;
for (int i = 0; i < section_count; ++i) {
if (section_resize_grabbable_rect(i).contains(event.position())) {
- window()->set_cursor(Gfx::StandardCursor::ResizeColumn);
+ set_override_cursor(Gfx::StandardCursor::ResizeColumn);
set_hovered_section(-1);
return;
}
@@ -192,7 +192,7 @@ void HeaderView::mousemove_event(MouseEvent& event)
if (!found_hovered_header)
set_hovered_section(-1);
}
- window()->set_cursor(Gfx::StandardCursor::None);
+ set_override_cursor(Gfx::StandardCursor::None);
}
void HeaderView::mouseup_event(MouseEvent& event)
@@ -200,7 +200,7 @@ void HeaderView::mouseup_event(MouseEvent& event)
if (event.button() == MouseButton::Left) {
if (m_in_section_resize) {
if (!section_resize_grabbable_rect(m_resizing_section).contains(event.position()))
- window()->set_cursor(Gfx::StandardCursor::None);
+ set_override_cursor(Gfx::StandardCursor::None);
m_in_section_resize = false;
return;
}
@@ -337,7 +337,6 @@ void HeaderView::leave_event(Core::Event& event)
{
Widget::leave_event(event);
set_hovered_section(-1);
- window()->set_cursor(Gfx::StandardCursor::None);
}
Gfx::TextAlignment HeaderView::section_alignment(int section) const