1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

PixelPaint: Scope tool actions to the containing window

We achieve this by deferring the construction of the tool buttons until
the toolbox widget has been added to a window.
This commit is contained in:
Andreas Kling 2020-07-23 19:53:48 +02:00
parent 4392413cd1
commit 7973f76790
2 changed files with 22 additions and 10 deletions

View file

@ -50,6 +50,8 @@ public:
private:
friend class ToolButton;
void setup_tools();
explicit ToolboxWidget();
GUI::ActionGroup m_action_group;
Vector<Tool*> m_tools;