LibGUI: Add a GItemView class.

This is a GAbstractView subclass that implements a icon-based view onto
a GModel. It still need a bunch of work, but it's in basic usable shape.
This commit is contained in:
Andreas Kling 2019-03-23 03:53:51 +01:00
parent 5707d7f547
commit 19fa70c821
Notes: sideshowbarker 2024-07-19 14:58:10 +09:00
16 changed files with 361 additions and 47 deletions

View file

@ -39,7 +39,7 @@ void GStackWidget::child_event(GChildEvent& event)
if (event.type() == GEvent::ChildAdded) {
if (!m_active_widget)
set_active_widget(&child);
else
else if (m_active_widget != &child)
child.set_visible(false);
} else if (event.type() == GEvent::ChildRemoved) {
if (m_active_widget == &child) {