[UFO-devel] ufo::UFocusManager vs ufo::UWidget
Status: Beta
Brought to you by:
schmidtjf
From: Andreas B. <b_...@gm...> - 2005-07-22 16:23:26
|
Hi the patch to ufo::UFocusManager that makes it consume events, breaks certain situations. Consider the following: There is a widget that takes mouse click events and it has a child that takes some kind of mouse events (m_eventState & MouseEvents, not talking about motion events here). A mouse click event is delivered to the child widget. Now imagine it is not interested in it (but the parent will be!) - it is now (because of ufo::UWidget::processEvent()) delivered to the focusmanager, which consumes it (requesting the focus). So the event is not propagated to the parent, even if the child does not make use of the focus at all. CU Andi |