| 73 | } |
| 74 | |
| 75 | void 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 | } |