mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
GWidget: Dispatch Show and Hide events when widget visibility changes
This commit is contained in:
parent
3f2c1a2e3d
commit
7e2b9c3c40
1 changed files with 8 additions and 0 deletions
|
@ -456,6 +456,14 @@ void GWidget::set_visible(bool visible)
|
||||||
parent->invalidate_layout();
|
parent->invalidate_layout();
|
||||||
if (m_visible)
|
if (m_visible)
|
||||||
update();
|
update();
|
||||||
|
|
||||||
|
if (m_visible) {
|
||||||
|
GShowEvent e;
|
||||||
|
event(e);
|
||||||
|
} else {
|
||||||
|
GHideEvent e;
|
||||||
|
event(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GWidget::spans_entire_window_horizontally() const
|
bool GWidget::spans_entire_window_horizontally() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue