mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Arrows
This commit is contained in:
parent
fd4b388975
commit
867a27ecd4
14 changed files with 249 additions and 36 deletions
|
|
@ -55,8 +55,7 @@ void PingWidget::paintEvent(QPaintEvent */*event*/)
|
|||
QRadialGradient g(QPointF((double) width() / 2, (double) height() / 2), qMin(width(), height()) / 2.0);
|
||||
g.setColorAt(0, color);
|
||||
g.setColorAt(1, Qt::transparent);
|
||||
painter.setBrush(QBrush(g));
|
||||
painter.setPen(Qt::black);
|
||||
painter.fillRect(0, 0, width(), height(), QBrush(g));
|
||||
}
|
||||
|
||||
void PingWidget::setPercentage(int value, int max)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue