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

Method drawRectStyle

custom_widgets/yacreader_busy_widget.cpp:95–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void BusyIndicator::drawRectStyle(QPainter *painter)
96{
97 // QColor color = palette().color(QPalette::WindowText);
98 QColor color = fillColor;
99 QBrush brush(color);
100 painter->setPen(Qt::NoPen);
101
102 painter->rotate(startAngle);
103
104 float angle = 0;
105 while (angle < 360) {
106 painter->setBrush(brush);
107 painter->drawRect(-8, -100, 16, 35);
108
109 painter->rotate(30);
110 angle += 30;
111
112 color.setAlphaF(angle / 360);
113 brush.setColor(color);
114 }
115}
116
117void BusyIndicator::drawEllipseStyle(QPainter *painter)
118{

Callers

nothing calls this directly

Calls 2

rotateMethod · 0.80
setColorMethod · 0.45

Tested by

no test coverage detected