| 101 | } |
| 102 | |
| 103 | void PageLabelWidget::updatePosition() |
| 104 | { |
| 105 | auto parent = dynamic_cast<QWidget *>(this->parent()); |
| 106 | if (parent == nullptr) { |
| 107 | return; |
| 108 | } |
| 109 | |
| 110 | animation->stop(); |
| 111 | if (animation->endValue().toPoint().y() == 0) |
| 112 | move(QPoint((parent->geometry().size().width() - this->width()), 0)); |
| 113 | else |
| 114 | move(QPoint((parent->geometry().size().width() - this->width()), -this->height())); |
| 115 | } |
| 116 | |
| 117 | void PageLabelWidget::applyTheme(const Theme &theme) |
| 118 | { |
no test coverage detected