homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp
changeset 98 e6f74eb7f69f
parent 97 66b5fe3c07fd
equal deleted inserted replaced
97:66b5fe3c07fd 98:e6f74eb7f69f
   203 {
   203 {
   204     // Arrange collection via the Arrange view
   204     // Arrange collection via the Arrange view
   205     int topItemId(0);
   205     int topItemId(0);
   206 
   206 
   207     const QList<HbAbstractViewItem *> array =
   207     const QList<HbAbstractViewItem *> array =
   208         mMenuView->listView()->visibleItems();
   208         mMenuView->itemView()->visibleItems();
   209 
   209 
   210     if (array.count() >= 1) {
   210     if (array.count() >= 1) {
   211         QModelIndex idx = array[0]->modelIndex();
   211         QModelIndex idx = array[0]->modelIndex();
   212         topItemId = idx.data(CaItemModel::IdRole).toInt();
   212         topItemId = idx.data(CaItemModel::IdRole).toInt();
   213     }
   213     }