1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 22:15:06 +00:00

IRCClient: Add a toolbar with some actions.

This commit is contained in:
Andreas Kling 2019-03-15 23:24:40 +01:00
parent b54ab06595
commit 3a3aa74b2e
13 changed files with 76 additions and 17 deletions

View file

@ -34,7 +34,7 @@ void GStackWidget::resize_event(GResizeEvent& event)
void GStackWidget::child_event(GChildEvent& event)
{
if (!event.child() || !event.child()->is_widget())
return;
return GWidget::child_event(event);
auto& child = static_cast<GWidget&>(*event.child());
if (event.type() == GEvent::ChildAdded) {
if (!m_active_widget)
@ -53,4 +53,5 @@ void GStackWidget::child_event(GChildEvent& event)
set_active_widget(new_active_widget);
}
}
GWidget::child_event(event);
}