MCPcopy Create free account
hub / github.com/cc20110101/RedisView / Updater

Method Updater

src/RedisView/AppView/UpdateSystem.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Updater::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
60void Updater::paint(QPainter *painter, QPaintEvent *event, int elapsed) {
61 painter->fillRect(event->rect(), _background);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected