diff -r 03646e8da489 -r 30f14686fb04 homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp --- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp Fri Jun 11 13:30:16 2010 +0300 +++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp Wed Jun 23 18:03:36 2010 +0300 @@ -35,6 +35,7 @@ #include "hscollectionstate.h" #include "hsmenuitemmodel.h" #include "hsmenuview.h" +#include "hslistviewitem.h" /*! \class HsMenuView @@ -73,6 +74,7 @@ mView = mBuilder.currentView(); mListView = mBuilder.currentListView(); + mViewLabel= mBuilder.currentViewLabel(); mCollectionButton = mBuilder.collectionButton(); @@ -119,7 +121,7 @@ SLOT(scrollToRow(int, QAbstractItemView::ScrollHint))); } mListView->setModel(model); - + mListView->setItemPrototype(new HsListViewItem()); if (mListView->model()) { connect(mListView->model(), SIGNAL(scrollTo(int, QAbstractItemView::ScrollHint)), @@ -410,6 +412,8 @@ mProxyModel->setFilterRegExp(QRegExp(QString(".*"), Qt::CaseInsensitive, QRegExp::RegExp)); mSearchListView->setModel(mProxyModel); + mSearchListView->setItemPrototype(new HsListViewItem()); + mSearchListView->scrollTo( mProxyModel->mapFromSource(mSearchViewInitialIndex), HbAbstractItemView::PositionAtTop);