equal
deleted
inserted
replaced
114 subModel->setDynamicSortFilter(true); |
114 subModel->setDynamicSortFilter(true); |
115 subModel->setSourceModel(mProxyModel); |
115 subModel->setSourceModel(mProxyModel); |
116 |
116 |
117 // Get the list object from the document and update the model. |
117 // Get the list object from the document and update the model. |
118 mListView = static_cast<HbListView *> (mDocLoader->findWidget("listView")); |
118 mListView = static_cast<HbListView *> (mDocLoader->findWidget("listView")); |
|
119 mListView->setItemPixmapCacheEnabled(true); |
119 Q_ASSERT_X( |
120 Q_ASSERT_X( |
120 mListView, |
121 mListView, |
121 "notesmainview.cpp", |
122 "notesmainview.cpp", |
122 "Unable to find list view."); |
123 "Unable to find list view."); |
123 // Update the list view model. |
124 // Update the list view model. |
494 \param index QModelIndex to be scrolled to. |
495 \param index QModelIndex to be scrolled to. |
495 */ |
496 */ |
496 void NotesMainView::scrollTo(QModelIndex index) |
497 void NotesMainView::scrollTo(QModelIndex index) |
497 { |
498 { |
498 OstTraceFunctionEntry0( NOTESMAINVIEW_SCROLLTO_ENTRY ); |
499 OstTraceFunctionEntry0( NOTESMAINVIEW_SCROLLTO_ENTRY ); |
499 mListView->scrollTo(index, HbAbstractItemView::EnsureVisible); |
500 QModelIndex modelIndex = mListView->model()->index( |
|
501 index.row(), index.column()); |
|
502 mListView->scrollTo(modelIndex, HbAbstractItemView::EnsureVisible); |
500 OstTraceFunctionExit0( NOTESMAINVIEW_SCROLLTO_EXIT ); |
503 OstTraceFunctionExit0( NOTESMAINVIEW_SCROLLTO_EXIT ); |
501 } |
504 } |
502 |
505 |
503 /*! |
506 /*! |
504 Slot to handle viewing Completed signal from agenda event viewer |
507 Slot to handle viewing Completed signal from agenda event viewer |