homescreenapp/stateplugins/hsapplibrarystateplugin/src/hssearchview.cpp
changeset 97 66b5fe3c07fd
parent 90 3ac3aaebaee5
child 98 e6f74eb7f69f
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hssearchview.cpp	Mon Sep 27 11:52:00 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hssearchview.cpp	Wed Oct 06 16:06:24 2010 +0300
@@ -22,6 +22,8 @@
 #include <HbAbstractViewItem>
 #include <HbView>
 #include <HbSearchPanel>
+#include <HbScrollBar>
+#include <HbIndexFeedback>
 
 #include <caitemmodel.h>
 
@@ -139,15 +141,25 @@
     if (mBuilder.currentViewLabel()) {
         mSearchViewBuilder.searchViewLabel()->setHeading(
                 mBuilder.currentViewLabel()->heading());
-        mSearchViewBuilder.setSearchLabledContext();
     }
-
+    
+    if (mStateContext == HsCollectionContext){
+    	mSearchViewBuilder.setSearchLabledContext();
+    }
+    
     mSearchView->hideItems(Hb::AllItems);
     HsListViewItem *item = new HsListViewItem();
     item->setTextFormat(Qt::RichText);
 
     mSearchListView->setModel(mProxyModel, item);
-
+    mSearchListView->verticalScrollBar()->setInteractive(true);
+    if (mStateContext == HsAllAppsContext) {
+        HbIndexFeedback *indexFeedback = new HbIndexFeedback(mSearchListView);
+        indexFeedback->setIndexFeedbackPolicy(
+                HbIndexFeedback::IndexFeedbackSingleCharacter);
+        indexFeedback->setItemView(mSearchListView);
+    }
+    
     mMainWindow.setCurrentView(mSearchView);
 
     openVkb();
@@ -414,3 +426,4 @@
 
 }
 
+