homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp
changeset 97 66b5fe3c07fd
parent 86 e4f038c420f7
child 98 e6f74eb7f69f
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp	Mon Sep 27 11:52:00 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp	Wed Oct 06 16:06:24 2010 +0300
@@ -28,6 +28,7 @@
 #include <HbView>
 #include <HbToolBarExtension>
 #include <HbShrinkingVkbHost>
+#include <HbScrollBar>
 
 #include "hsallappsstate.h"
 #include "hsallcollectionsstate.h"
@@ -132,7 +133,7 @@
 
         mListView->setItemPixmapCacheEnabled(true); // TODO: remove when enabled from default
         mListView->setModel(model, new HsListViewItem());
-
+        mListView->verticalScrollBar()->setInteractive(true);
         if (mListView->model()) {
             connect(mListView->model(),
                     SIGNAL(scrollTo(int, QAbstractItemView::ScrollHint)),
@@ -222,6 +223,23 @@
 }
 
 /*!
+ Disable or enable ovi store action button.
+ \param disable If true action gets disabled.
+ */
+void HsMenuView::disableOviStore(bool disable)
+{
+    if (mBuilder.oviStoreAction()) {
+        mBuilder.oviStoreAction()->setDisabled(disable);
+    }
+    if (mBuilder.operatorAction()) {
+        mBuilder.operatorAction()->setDisabled(disable);
+    }
+    if (mBuilder.toolBarExtensionAction()) {
+        mBuilder.toolBarExtensionAction()->setDisabled(disable);
+    }
+}
+
+/*!
  Scrolls list item view to requested row.
  \param row The row which is to get at the position pointed by \a hint.
  \param hint Position in the view the row should be scrolled to.