equal
deleted
inserted
replaced
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 { |