calendarui/regionalplugins/lunarVietnamese/src/calenlunarvietnameseplugin.cpp
changeset 51 0b38fc5b94c6
parent 45 b6db4fd4947b
child 89 b57382753122
equal deleted inserted replaced
46:ecd7b9840282 51:0b38fc5b94c6
   499     HbLabel::paint(painter,option,widget);
   499     HbLabel::paint(painter,option,widget);
   500     QPen pen;//
   500     QPen pen;//
   501     pen.setStyle(Qt::SolidLine);
   501     pen.setStyle(Qt::SolidLine);
   502     pen.setWidth(1);
   502     pen.setWidth(1);
   503     pen.setBrush(Qt::gray);
   503     pen.setBrush(Qt::gray);
       
   504     
       
   505     // Store the old pen
       
   506     QPen oldPen = painter->pen();
       
   507         
   504     painter->setPen(pen);
   508     painter->setPen(pen);
   505     QRectF rect = this->rect();
   509     QRectF rect = this->rect();
   506     painter->eraseRect(rect);
   510     painter->eraseRect(rect);
   507     painter->drawRect(rect);
   511     painter->drawRect(rect);
   508     painter->fillRect(rect,Qt::gray);
   512     painter->fillRect(rect,Qt::gray);
       
   513     
       
   514     // Set the old pen back
       
   515     painter->setPen(oldPen);
       
   516         
   509     TRACE_EXIT_POINT;    
   517     TRACE_EXIT_POINT;    
   510     }
   518     }
   511 	
   519 	
   512 void CalenPluginLabel::mousePressEvent(QGraphicsSceneMouseEvent* event)
   520 void CalenPluginLabel::mousePressEvent(QGraphicsSceneMouseEvent* event)
   513     {
   521     {