1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:37:44 +00:00

PaintBrush: Add a "Tool" menu and put all the tools in it

This commit is contained in:
Andreas Kling 2020-05-13 19:30:07 +02:00
parent cbd746e3ec
commit 98cb442edf
5 changed files with 31 additions and 3 deletions

View file

@ -26,6 +26,7 @@
#include "Tool.h"
#include "ImageEditor.h"
#include <LibGUI/Action.h>
namespace PaintBrush {
@ -42,4 +43,9 @@ void Tool::setup(ImageEditor& editor)
m_editor = editor.make_weak_ptr();
}
void Tool::set_action(GUI::Action* action)
{
m_action = action;
}
}