Fix forwarding key events to the TabBox list view

Allows to navigate with cursor keys again.
This commit is contained in:
Martin Gräßlin 2013-10-25 15:04:22 +02:00
parent 3797c3d26e
commit 96691036f6

View file

@ -429,7 +429,10 @@ void DeclarativeView::slotWindowChanged(WId wId, unsigned int properties)
bool DeclarativeView::sendKeyEvent(QKeyEvent *e) bool DeclarativeView::sendKeyEvent(QKeyEvent *e)
{ {
return event(e); if (QQuickItem *item = rootObject()->findChild<QQuickItem*>(QStringLiteral("listView"))) {
return sendEvent(item, e);
}
return false;
} }
} // namespace TabBox } // namespace TabBox