| 238 | } |
| 239 | |
| 240 | void WaitingSpinnerWidget::updatePosition() { |
| 241 | if (parentWidget() && _centerOnParent) { |
| 242 | move(parentWidget()->width() / 2 - width() / 2, |
| 243 | parentWidget()->height() / 2 - height() / 2); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | int WaitingSpinnerWidget::lineCountDistanceFromPrimary(int current, int primary, |
| 248 | int totalNrOfLines) { |