| 37 | } |
| 38 | |
| 39 | void DropShadowLabel::paintEvent(QPaintEvent *event) |
| 40 | { |
| 41 | Q_UNUSED(event); |
| 42 | |
| 43 | QPainter painter(this); |
| 44 | painter.setFont(font()); |
| 45 | drawTextEffect(&painter, QPoint(contentsMargins().left(), 1)); |
| 46 | drawText(&painter, QPoint(contentsMargins().left(), 0)); |
| 47 | } |
| 48 | |
| 49 | void DropShadowLabel::setColor(const QColor &color) |
| 50 | { |