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:
Andreas Kling 2019-11-11 19:13:36 +01:00
parent 524da0ad01
commit d5f735ecec
Notes: sideshowbarker 2024-07-19 11:15:17 +09:00
7 changed files with 121 additions and 1 deletions

View file

@ -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;
}
}