diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-11 14:22:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-11 14:26:37 +0200 |
commit | e2050ea0ce2caed4f81687064d820e8acc08b6f7 (patch) | |
tree | 327fc34d6bb708432c93fe27a85a2bbbfa2497fc /Libraries/LibGUI/Splitter.cpp | |
parent | f475fa3f54c3cddba551cbae3a04414c0ee8b5c9 (diff) | |
download | serenity-e2050ea0ce2caed4f81687064d820e8acc08b6f7.zip |
LibGUI: Use widget override cursors in GUI::Splitter
Diffstat (limited to 'Libraries/LibGUI/Splitter.cpp')
-rw-r--r-- | Libraries/LibGUI/Splitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/Splitter.cpp b/Libraries/LibGUI/Splitter.cpp index 1a95383770..caec8f06e5 100644 --- a/Libraries/LibGUI/Splitter.cpp +++ b/Libraries/LibGUI/Splitter.cpp @@ -62,12 +62,12 @@ void Splitter::override_cursor(bool do_override) { if (do_override) { if (!m_overriding_cursor) { - window()->set_cursor(m_orientation == Orientation::Horizontal ? Gfx::StandardCursor::ResizeColumn : Gfx::StandardCursor::ResizeRow); + set_override_cursor(m_orientation == Orientation::Horizontal ? Gfx::StandardCursor::ResizeColumn : Gfx::StandardCursor::ResizeRow); m_overriding_cursor = true; } } else { if (m_overriding_cursor) { - window()->set_cursor(Gfx::StandardCursor::None); + set_override_cursor(Gfx::StandardCursor::None); m_overriding_cursor = false; } } @@ -198,7 +198,7 @@ void Splitter::mouseup_event(MouseEvent& event) m_first_resizee = nullptr; m_second_resizee = nullptr; if (!rect().contains(event.position())) - window()->set_cursor(Gfx::StandardCursor::None); + set_override_cursor(Gfx::StandardCursor::None); } } |