homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp
changeset 60 30f14686fb04
parent 55 03646e8da489
child 61 2b1b11a301d2
--- 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);