mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +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:
parent
524da0ad01
commit
d5f735ecec
Notes:
sideshowbarker
2024-07-19 11:15:17 +09:00
Author: https://github.com/awesomekling
Commit: d5f735ecec
7 changed files with 121 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue