| 10 | { |
| 11 | |
| 12 | FloatNotificationHandle::FloatNotificationHandle(const std::shared_ptr<ClientContext>& ctx, QWidget* parent) : BaseWidget(ctx, parent) { |
| 13 | setFixedSize(40, 50); |
| 14 | this->setStyleSheet(R"( background-color: #00000000; )"); |
| 15 | auto ps = new QGraphicsDropShadowEffect(); |
| 16 | ps->setBlurRadius(20); |
| 17 | ps->setOffset(0, 0); |
| 18 | ps->setColor(0xaaaaaa); |
| 19 | this->setGraphicsEffect(ps); |
| 20 | } |
| 21 | |
| 22 | void FloatNotificationHandle::paintEvent(QPaintEvent *event) { |
| 23 | QPainter painter(this); |
nothing calls this directly
no outgoing calls
no test coverage detected