summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/SprayTool.cpp
diff options
context:
space:
mode:
authorMarcus Nilsson <brainbomb@gmail.com>2021-08-02 21:16:46 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-03 09:04:57 +0200
commit15e9d0b4d897ebcc6bf43ba83c81fddc839c327d (patch)
treec306ce170c3a7becd2a32e0e5b34f3a5fedb26d0 /Userland/Applications/PixelPaint/SprayTool.cpp
parentb257d8d284b500de46376a931acdbed9484159ba (diff)
downloadserenity-15e9d0b4d897ebcc6bf43ba83c81fddc839c327d.zip
PixelPaint: Remove context menu for SprayTool
Remove the context menu for SprayTool and just use the tool properties widget for options.
Diffstat (limited to 'Userland/Applications/PixelPaint/SprayTool.cpp')
-rw-r--r--Userland/Applications/PixelPaint/SprayTool.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/Userland/Applications/PixelPaint/SprayTool.cpp b/Userland/Applications/PixelPaint/SprayTool.cpp
index c2fae6c93c..8e3d04a632 100644
--- a/Userland/Applications/PixelPaint/SprayTool.cpp
+++ b/Userland/Applications/PixelPaint/SprayTool.cpp
@@ -88,27 +88,6 @@ void SprayTool::on_mouseup(Layer&, GUI::MouseEvent&, GUI::MouseEvent&)
}
}
-void SprayTool::on_tool_button_contextmenu(GUI::ContextMenuEvent& event)
-{
- if (!m_context_menu) {
- m_context_menu = GUI::Menu::construct();
- m_thickness_actions.set_exclusive(true);
- auto insert_action = [&](int size, bool checked = false) {
- auto action = GUI::Action::create_checkable(String::number(size), [this, size](auto&) {
- m_thickness = size;
- });
- action->set_checked(checked);
- m_thickness_actions.add_action(*action);
- m_context_menu->add_action(move(action));
- };
- insert_action(1, true);
- insert_action(2);
- insert_action(3);
- insert_action(4);
- }
- m_context_menu->popup(event.screen_position());
-}
-
GUI::Widget* SprayTool::get_properties_widget()
{
if (!m_properties_widget) {