MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / FloatNotificationHandle

Method FloatNotificationHandle

src/client/ui/float_notification_handle.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected