317 // NOTE: Layout name MUST be same as the name mentioned in the css |
317 // NOTE: Layout name MUST be same as the name mentioned in the css |
318 mEventsList->setLayoutName(customLayout); |
318 mEventsList->setLayoutName(customLayout); |
319 |
319 |
320 // TODO : remove this line after gestures are available |
320 // TODO : remove this line after gestures are available |
321 mEventsList->installEventFilter(mView); |
321 mEventsList->installEventFilter(mView); |
322 |
322 |
|
323 // Enable the pixmap cache for better scrolling performance |
|
324 mEventsList->setItemPixmapCacheEnabled(true); |
|
325 |
323 // Connect to the long press and activation signals |
326 // Connect to the long press and activation signals |
324 connect(mEventsList, SIGNAL(longPressed(HbAbstractViewItem*, const QPointF&)), |
327 connect(mEventsList, SIGNAL(longPressed(HbAbstractViewItem*, const QPointF&)), |
325 this, SLOT(itemLongPressed(HbAbstractViewItem*, const QPointF&))); |
328 this, SLOT(itemLongPressed(HbAbstractViewItem*, const QPointF&))); |
326 connect(mEventsList, SIGNAL(activated(const QModelIndex&)), this, |
329 connect(mEventsList, SIGNAL(activated(const QModelIndex&)), this, |
327 SLOT(itemActivated(const QModelIndex&))); |
330 SLOT(itemActivated(const QModelIndex&))); |