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:
parent
4392413cd1
commit
7973f76790
2 changed files with 22 additions and 10 deletions
|
@ -50,6 +50,8 @@ public:
|
|||
private:
|
||||
friend class ToolButton;
|
||||
|
||||
void setup_tools();
|
||||
|
||||
explicit ToolboxWidget();
|
||||
GUI::ActionGroup m_action_group;
|
||||
Vector<Tool*> m_tools;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue