MCPcopy Create free account
hub / github.com/YACReader/yacreader / drawEllipseStyle

Method drawEllipseStyle

custom_widgets/yacreader_busy_widget.cpp:117–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void BusyIndicator::drawEllipseStyle(QPainter *painter)
118{
119 // QColor color = palette().color(QPalette::WindowText);
120 QColor color = fillColor;
121 QBrush brush(color);
122 painter->setPen(Qt::NoPen);
123
124 painter->rotate(startAngle);
125
126 float angle = 0;
127 while (angle < 360) {
128 painter->setBrush(brush);
129 painter->drawEllipse(-10, -100, 30, 30);
130
131 painter->rotate(30);
132 angle += 30;
133
134 color.setAlphaF(angle / 360);
135 brush.setColor(color);
136 }
137}
138
139void BusyIndicator::drawArcStyle(QPainter *painter)
140{

Callers

nothing calls this directly

Calls 2

rotateMethod · 0.80
setColorMethod · 0.45

Tested by

no test coverage detected