From 4a57a4a0b36b5d3738bd6704c34dc69eef1d481b Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Fri, 6 Aug 2021 11:57:56 +0200 Subject: PixelPaint: Use a StackWidget in ToolPropertiesWidget Previously changing tools while simultaneously using a widget like a slider would result in a event_dispatch() failure. Instead use a StackWidget to set the active widget. --- Userland/Applications/PixelPaint/ToolPropertiesWidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Userland/Applications/PixelPaint/ToolPropertiesWidget.h') diff --git a/Userland/Applications/PixelPaint/ToolPropertiesWidget.h b/Userland/Applications/PixelPaint/ToolPropertiesWidget.h index 5f2a5bf2a1..925d08c5ef 100644 --- a/Userland/Applications/PixelPaint/ToolPropertiesWidget.h +++ b/Userland/Applications/PixelPaint/ToolPropertiesWidget.h @@ -8,6 +8,7 @@ #include #include +#include #include namespace PixelPaint { @@ -28,6 +29,8 @@ private: RefPtr m_group_box; Tool* m_active_tool { nullptr }; + RefPtr m_tool_widget_stack; + RefPtr m_blank_widget; GUI::Widget* m_active_tool_widget { nullptr }; }; -- cgit v1.2.3