emailuis/nmailui/src/nmmailboxlistviewitem.cpp
changeset 23 2dc6caa42ec3
parent 20 ecc8def7944a
child 27 9ba4404ef423
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
    87 {
    87 {
    88     Q_UNUSED(index);
    88     Q_UNUSED(index);
    89     return true;
    89     return true;
    90 }
    90 }
    91 
    91 
    92 
       
    93 /*!
       
    94     item type
       
    95 */
       
    96 int NmMailboxListViewItem::type() const
       
    97 {
       
    98     return NmMailboxListViewItem::ItemType;
       
    99 }
       
   100 
       
   101 /*!
    92 /*!
   102     polishEvent. Call to base class polish event.
    93     polishEvent. Call to base class polish event.
   103 */
    94 */
   104 void NmMailboxListViewItem::polishEvent()
    95 void NmMailboxListViewItem::polishEvent()
   105 {
    96 {
   114     const QStyleOptionGraphicsItem *option,
   105     const QStyleOptionGraphicsItem *option,
   115     QWidget *widget)
   106     QWidget *widget)
   116 {
   107 {
   117     Q_UNUSED(option);
   108     Q_UNUSED(option);
   118     Q_UNUSED(widget);
   109     Q_UNUSED(widget);
   119     if (painter){
   110     Q_UNUSED(painter);
   120         painter->setOpacity(0.10);
       
   121         QColor col = HbColorScheme::color("list_item_content_normal");
       
   122         if (col.isValid()) {
       
   123             painter->setPen(col);
       
   124         }
       
   125         QLineF line1( rect().topLeft().x(), rect().bottomRight().y(),
       
   126                      rect().bottomRight().x(), rect().bottomRight().y());
       
   127         painter->drawLine(line1);
       
   128         // Draw line before each item
       
   129         QLineF line2( rect().topLeft().x(), rect().topLeft().y(),
       
   130                      rect().bottomRight().x(), rect().topLeft().y());
       
   131         painter->drawLine(line2);
       
   132     }
       
   133 }
   111 }