summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/Tools/ZoomTool.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-21 20:25:52 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-21 20:33:01 +0200
commit101eb53de5497239e8ffc0afa6dc488c4d4521a4 (patch)
tree3443c7083fd6519c1821e1e2ce02c34c5b531bd0 /Userland/Applications/PixelPaint/Tools/ZoomTool.h
parentc45f99f735316564115f787cb4fb93bad8c16437 (diff)
downloadserenity-101eb53de5497239e8ffc0afa6dc488c4d4521a4.zip
PixelPaint: Add Tool::tool_name() as a single-point-of-truth
Let the tools know what their names are.
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/ZoomTool.h')
-rw-r--r--Userland/Applications/PixelPaint/Tools/ZoomTool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/ZoomTool.h b/Userland/Applications/PixelPaint/Tools/ZoomTool.h
index b52440c812..472ea5036c 100644
--- a/Userland/Applications/PixelPaint/Tools/ZoomTool.h
+++ b/Userland/Applications/PixelPaint/Tools/ZoomTool.h
@@ -22,6 +22,8 @@ public:
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return Gfx::StandardCursor::Zoom; }
private:
+ virtual StringView tool_name() const override { return "Zoom Tool"sv; }
+
RefPtr<GUI::Widget> m_properties_widget;
double m_sensitivity { 0.5 };
};