diff -r 32e56106abf2 -r 66b5fe3c07fd homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmenuview.cpp --- 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 #include #include +#include #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.