messagingapp/msgui/msgapp/src/msglistview.cpp
changeset 67 fc91263aee62
parent 62 fdbe8253b596
child 76 60a8a215b0ec
equal deleted inserted replaced
65:d8ac8e5e4721 67:fc91263aee62
   261     {
   261     {
   262     // Register the custorm css path.
   262     // Register the custorm css path.
   263     HbStyleLoader::registerFilePath(":/clv");
   263     HbStyleLoader::registerFilePath(":/clv");
   264 
   264 
   265     mMsgList = new HbListView(this);
   265     mMsgList = new HbListView(this);
   266     mMsgList->setScrollingStyle(HbScrollArea::PanOrFlick);
       
   267     mMsgList->setClampingStyle(HbScrollArea::BounceBackClamping);
   266     mMsgList->setClampingStyle(HbScrollArea::BounceBackClamping);
   268 
   267 
   269     mMsgList->setLayoutName("custom");
   268     mMsgList->setLayoutName("custom");
   270     mMsgList->setItemRecycling(true);
   269     mMsgList->setItemRecycling(true);
       
   270 	mMsgList->setItemPixmapCacheEnabled(true);
   271     mMsgList->setUniformItemSizes(true);
   271     mMsgList->setUniformItemSizes(true);
   272 
   272 
   273     MsgListViewItem *prototype = new MsgListViewItem(this);
   273     MsgListViewItem *prototype = new MsgListViewItem(this);
   274     mMsgList->setItemPrototype(prototype);
   274     mMsgList->setItemPrototype(prototype);
   275     mMsgList->setModel(ConversationsEngine::instance()->getConversationsSummaryModel());
   275     mMsgList->setModel(ConversationsEngine::instance()->getConversationsSummaryModel());