emailuis/nmailui/src/nmmessagesearchlistview.cpp
changeset 62 a8c646b56683
parent 56 15bc1d5d6267
child 66 084b5b1f02a7
equal deleted inserted replaced
57:ae34e1715e21 62:a8c646b56683
   236             mMessageListWidget->setItemRecycling(true);
   236             mMessageListWidget->setItemRecycling(true);
   237             mMessageListWidget->contentWidget()->setProperty("indentation", 0);
   237             mMessageListWidget->contentWidget()->setProperty("indentation", 0);
   238             mMessageListWidget->setScrollDirections(Qt::Vertical);
   238             mMessageListWidget->setScrollDirections(Qt::Vertical);
   239             mMessageListWidget->setClampingStyle(HbScrollArea::BounceBackClamping);
   239             mMessageListWidget->setClampingStyle(HbScrollArea::BounceBackClamping);
   240             mMessageListWidget->setFrictionEnabled(true);
   240             mMessageListWidget->setFrictionEnabled(true);
   241 
   241             mMessageListWidget->setItemPixmapCacheEnabled(true);
       
   242             
   242             // We want the search results to appear one by one.
   243             // We want the search results to appear one by one.
   243             mMessageListWidget->setEnabledAnimations(HbAbstractItemView::Appear &
   244             mMessageListWidget->setEnabledAnimations(HbAbstractItemView::Appear &
   244                                                      HbAbstractItemView::Expand);
   245                                                      HbAbstractItemView::Expand);
   245         }
   246         }
   246 
   247 
   347     const int resultCount = mMsgListModel.rowCount();
   348     const int resultCount = mMsgListModel.rowCount();
   348 
   349 
   349     if (resultCount) {
   350     if (resultCount) {
   350         if (mInfoLabel) {
   351         if (mInfoLabel) {
   351             // Display the result count on the info label.
   352             // Display the result count on the info label.
   352             QString resultsString(hbTrId("txt_mail_list_search_results").arg(resultCount));
   353             QString resultsString(hbTrId("txt_mail_list_search_results",resultCount));
   353             mInfoLabel->setHeading(resultsString);
   354             mInfoLabel->setHeading(resultsString);
   354 
   355 
   355             if (!mInfoLabel->isVisible()) {
   356             if (!mInfoLabel->isVisible()) {
   356                 mInfoLabel->show();
   357                 mInfoLabel->show();
   357             }
   358             }