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

VisualBuilder: Don't allow moving/resizing widgets that are in a layout

Also paint these widgets' grabbers differently to make it stand out
visually which widgets have managed geometry. :^)
This commit is contained in:
Andreas Kling 2019-09-17 21:22:15 +02:00
parent 5e439bb3c8
commit 9d460d55d1
3 changed files with 26 additions and 2 deletions

View file

@ -72,6 +72,8 @@ public:
Rect transform_origin_rect() const { return m_transform_origin_rect; }
void capture_transform_origin_rect();
bool is_in_layout() const;
private:
VBWidget(VBWidgetType, VBForm&, VBWidget* parent);