| 24 | { |
| 25 | |
| 26 | AddButton::AddButton(QWidget* parent) : QLabel(parent) { |
| 27 | setFixedSize(50, 50); |
| 28 | setStyleSheet("background:#00000000;"); |
| 29 | auto ps = new QGraphicsDropShadowEffect(); |
| 30 | ps->setBlurRadius(15); |
| 31 | ps->setOffset(0, 0); |
| 32 | ps->setColor(0x999999); |
| 33 | this->setGraphicsEffect(ps); |
| 34 | } |
| 35 | |
| 36 | void AddButton::paintEvent(QPaintEvent *) { |
| 37 | QPainter painter(this); |
nothing calls this directly
no outgoing calls
no test coverage detected