mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
HackStudio: Show the edited form widget's widget tree in the tree view
This patch introduces a simple WidgetTreeModel that models the widget tree inside of a given root GWidget.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "CursorTool.h"
|
||||
#include "FormEditorWidget.h"
|
||||
#include "FormWidget.h"
|
||||
#include "WidgetTreeModel.h"
|
||||
#include <AK/LogStream.h>
|
||||
|
||||
void CursorTool::on_mousedown(GMouseEvent& event)
|
||||
@@ -78,6 +79,7 @@ void CursorTool::on_mousemove(GMouseEvent& event)
|
||||
widget.set_relative_rect(new_rect);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
m_editor.model().update();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user