![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <color_pie.h>
Public Member Functions | |
| ColorPie (const QMap< QString, int > &_colors={}, QWidget *parent=nullptr) | |
| void | setColors (const QMap< QString, int > &_colors) |
| QSize | minimumSizeHint () const override |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *) override |
| void | enterEvent (QEnterEvent *event) override |
| void | leaveEvent (QEvent *) override |
| void | mouseMoveEvent (QMouseEvent *event) override |
Private Member Functions | |
| QColor | colorFromName (const QString &name) const |
| QString | tooltipForPoint (const QPoint &pt) const |
Private Attributes | |
| QList< QPair< QString, int > > | colors |
| bool | isHovered = false |
| const double | minRatioThreshold = 0.01 |
|
explicit |
|
private |
|
overrideprotected |
|
overrideprotected |
|
override |
|
overrideprotected |
|
overrideprotected |
| void ColorPie::setColors | ( | const QMap< QString, int > & | _colors | ) |
|
private |
|
private |
|
private |
|
private |