mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:17:35 +00:00
LibGUI: Notify layout system of more relevant events in Widget
This commit is contained in:
parent
a0938d62f3
commit
f35efe9bc8
1 changed files with 3 additions and 1 deletions
|
@ -407,6 +407,7 @@ void Widget::set_layout(NonnullRefPtr<Layout> layout)
|
||||||
} else {
|
} else {
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
layout_relevant_change_occured();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::do_layout()
|
void Widget::do_layout()
|
||||||
|
@ -1018,6 +1019,7 @@ void Widget::set_palette(Palette const& palette)
|
||||||
void Widget::set_title(String title)
|
void Widget::set_title(String title)
|
||||||
{
|
{
|
||||||
m_title = move(title);
|
m_title = move(title);
|
||||||
|
layout_relevant_change_occured();
|
||||||
// For tab widget children, our change in title also affects the parent.
|
// For tab widget children, our change in title also affects the parent.
|
||||||
if (parent_widget())
|
if (parent_widget())
|
||||||
parent_widget()->update();
|
parent_widget()->update();
|
||||||
|
@ -1060,7 +1062,7 @@ void Widget::set_grabbable_margins(Margins const& margins)
|
||||||
if (m_grabbable_margins == margins)
|
if (m_grabbable_margins == margins)
|
||||||
return;
|
return;
|
||||||
m_grabbable_margins = margins;
|
m_grabbable_margins = margins;
|
||||||
invalidate_layout();
|
layout_relevant_change_occured();
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx::IntRect Widget::relative_non_grabbable_rect() const
|
Gfx::IntRect Widget::relative_non_grabbable_rect() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue