MCPcopy Create free account
hub / github.com/YACReader/yacreader / updatePosition

Method updatePosition

YACReader/notifications_label_widget.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void NotificationsLabelWidget::updatePosition()
76{
77 auto parent = dynamic_cast<QWidget *>(this->parent());
78 if (parent == nullptr) {
79 return;
80 }
81 move(QPoint((parent->geometry().size().width() - this->width()) / 2, (parent->geometry().size().height() - this->height()) / 2));
82}

Callers

nothing calls this directly

Calls 2

QPointClass · 0.85
parentMethod · 0.45

Tested by

no test coverage detected