summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/HeaderView.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-10 20:55:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-11 14:26:37 +0200
commitb4f307f98225d6f3a256feff148188ac1486e07b (patch)
tree0cfa9678140d4de722b6277d4b6f6c12391a1f0d /Libraries/LibGUI/HeaderView.cpp
parent40fbdd4e9e0e58c5db8133ca2d3b23046baebd1d (diff)
downloadserenity-b4f307f98225d6f3a256feff148188ac1486e07b.zip
LibGUI+WindowServer: Rename window "override cursor" to just "cursor"
Let's just say each window has a cursor, there's not really overriding going on.
Diffstat (limited to 'Libraries/LibGUI/HeaderView.cpp')
-rw-r--r--Libraries/LibGUI/HeaderView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibGUI/HeaderView.cpp b/Libraries/LibGUI/HeaderView.cpp
index 6b3495e836..338aae0e81 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_override_cursor(Gfx::StandardCursor::ResizeColumn);
+ window()->set_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_override_cursor(Gfx::StandardCursor::None);
+ window()->set_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_override_cursor(Gfx::StandardCursor::None);
+ window()->set_cursor(Gfx::StandardCursor::None);
m_in_section_resize = false;
return;
}
@@ -337,7 +337,7 @@ void HeaderView::leave_event(Core::Event& event)
{
Widget::leave_event(event);
set_hovered_section(-1);
- window()->set_override_cursor(Gfx::StandardCursor::None);
+ window()->set_cursor(Gfx::StandardCursor::None);
}
Gfx::TextAlignment HeaderView::section_alignment(int section) const