| 45 | } |
| 46 | |
| 47 | Updater::Updater() { |
| 48 | QLinearGradient gradient(QPointF(50, -20), QPointF(80, 20)); |
| 49 | gradient.setColorAt(0.0, Qt::white); |
| 50 | gradient.setColorAt(1.0, QColor(0xa6, 0xce, 0x39)); |
| 51 | _background = QBrush(QColor(64, 32, 64)); |
| 52 | _circleBrush = QBrush(gradient); |
| 53 | _circlePen = QPen(Qt::black); |
| 54 | _circlePen.setWidth(1); |
| 55 | _textPen = QPen(Qt::white); |
| 56 | _textFont.setPixelSize(50); |
| 57 | |
| 58 | } |
| 59 | |
| 60 | void Updater::paint(QPainter *painter, QPaintEvent *event, int elapsed) { |
| 61 | painter->fillRect(event->rect(), _background); |
nothing calls this directly
no outgoing calls
no test coverage detected