| 73 | // ----------------------------------------------------------------------- |
| 74 | |
| 75 | bool Widget::PrivateData::giveKeyboardEventForSubWidgets(const KeyboardEvent& ev) |
| 76 | { |
| 77 | if (! visible) |
| 78 | return false; |
| 79 | if (subWidgets.size() == 0) |
| 80 | return false; |
| 81 | |
| 82 | FOR_EACH_SUBWIDGET_INV(rit) |
| 83 | { |
| 84 | SubWidget* const widget(*rit); |
| 85 | |
| 86 | if (widget->isVisible() && widget->onKeyboard(ev)) |
| 87 | return true; |
| 88 | } |
| 89 | |
| 90 | return false; |
| 91 | } |
| 92 | |
| 93 | bool Widget::PrivateData::giveCharacterInputEventForSubWidgets(const CharacterInputEvent& ev) |
| 94 | { |
no test coverage detected