mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 10:15:07 +00:00
VisualBuilder: Add a way to dump the current form to the debugger.
This commit is contained in:
parent
5b0c0847ef
commit
5e733d47a3
5 changed files with 27 additions and 0 deletions
|
@ -300,6 +300,19 @@ void VBForm::mousemove_event(GMouseEvent& event)
|
|||
}
|
||||
}
|
||||
|
||||
void VBForm::dump()
|
||||
{
|
||||
dbgprintf("[Form]\n");
|
||||
dbgprintf("Name=%s\n", m_name.characters());
|
||||
dbgprintf("\n");
|
||||
int i = 0;
|
||||
for (auto& widget : m_widgets) {
|
||||
dbgprintf("[Widget %d]\n", i++);
|
||||
widget->dump();
|
||||
dbgprintf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
void VBForm::mouseup_event(GMouseEvent& event)
|
||||
{
|
||||
if (event.button() == GMouseButton::Left) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue