diff -r 896e9dbc5f19 -r 065198191975 qtinternetradio/ui/src/irsearchchannelsview.cpp --- a/qtinternetradio/ui/src/irsearchchannelsview.cpp Wed Aug 18 09:40:26 2010 +0300 +++ b/qtinternetradio/ui/src/irsearchchannelsview.cpp Thu Sep 02 20:17:46 2010 +0300 @@ -51,38 +51,11 @@ { LOG_METHOD; iSettings = IRQSettings::openInstance(); - //if this view is not starting view, finish all initialization in constructor - if (getViewManager()->views().count() > 0) - { - if (!initCompleted()) - { - normalInit(); - } - } -} - -void IRSearchChannelsView::lazyInit() -{ - LOG_METHOD; - if (!initCompleted()) - { - normalInit(); - } -} - -void IRSearchChannelsView::normalInit() -{ - LOG_METHOD; - if (!initCompleted()) - { - IRBaseView::lazyInit(); - loadLayout(); - connectWidget(); - switch2InitState(); - initMenu(); - initTimer(); - setInitCompleted(true); - } + loadLayout(); + connectWidget(); + switch2InitState(); + initMenu(); + initTimer(); } void IRSearchChannelsView::initMenu() @@ -540,7 +513,13 @@ case EIR_ViewCommand_ACTIVATED: iIconIndexArray.clear(); iListView->clearFocus(); + iSearchPanelWidget->setFocusDelegation(FocusDelegationFirstChild); iSearchPanelWidget->setFocus(); + if( (0 == iChannelModel->rowCount()) + && iKeyText.isEmpty() ) + { + showVkb(); + } connectIsdsClient(); break; @@ -569,6 +548,18 @@ return false; } + +void IRSearchChannelsView::showVkb() +{ + QInputContext *ic = qApp->inputContext(); + if (ic) + { + QEvent *event = new QEvent(QEvent::RequestSoftwareInputPanel); + ic->filterEvent(event); + delete event; + } +} + void IRSearchChannelsView::hideVkb() { QInputContext *ic = qApp->inputContext();