PixelPaint: Use the crosshair cursor with the lasso tool

This matches the behavior of other selection tools.
This commit is contained in:
Tim Ledbetter 2023-02-05 19:31:38 +00:00 committed by Sam Atkins
commit 971a5467bf
Notes: sideshowbarker 2024-07-17 08:37:36 +09:00

View file

@ -26,6 +26,7 @@ public:
virtual bool on_keydown(GUI::KeyEvent&) override; virtual bool on_keydown(GUI::KeyEvent&) override;
virtual void on_second_paint(Layer const*, GUI::PaintEvent&) override; virtual void on_second_paint(Layer const*, GUI::PaintEvent&) override;
virtual ErrorOr<GUI::Widget*> get_properties_widget() override; virtual ErrorOr<GUI::Widget*> get_properties_widget() override;
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap const>> cursor() override { return Gfx::StandardCursor::Crosshair; }
private: private:
virtual StringView tool_name() const override { return "Lasso Select Tool"sv; } virtual StringView tool_name() const override { return "Lasso Select Tool"sv; }