From 40ffa8c626d82444fa989e4f273bfa3af3c08bf2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 13 May 2020 00:16:54 +0200 Subject: [PATCH] PaintBrush: Switch to the "move" cursor while moving layers around --- Applications/PaintBrush/MoveTool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Applications/PaintBrush/MoveTool.cpp b/Applications/PaintBrush/MoveTool.cpp index a1b20125a7e..6673adda440 100644 --- a/Applications/PaintBrush/MoveTool.cpp +++ b/Applications/PaintBrush/MoveTool.cpp @@ -28,6 +28,7 @@ #include "ImageEditor.h" #include "Layer.h" #include "PaintableWidget.h" +#include #include namespace PaintBrush { @@ -49,6 +50,7 @@ void MoveTool::on_mousedown(Layer& layer, GUI::MouseEvent& event, GUI::MouseEven m_layer_being_moved = layer; m_event_origin = original_event.position(); m_layer_origin = layer.location(); + m_editor->window()->set_override_cursor(GUI::StandardCursor::Move); } void MoveTool::on_mousemove(Layer&, GUI::MouseEvent&, GUI::MouseEvent& original_event) @@ -65,6 +67,7 @@ void MoveTool::on_mouseup(Layer&, GUI::MouseEvent& event, GUI::MouseEvent&) if (event.button() != GUI::MouseButton::Left) return; m_layer_being_moved = nullptr; + m_editor->window()->set_override_cursor(GUI::StandardCursor::None); } }