| 71 | } |
| 72 | |
| 73 | void setPixmap(const QString &uri) |
| 74 | { |
| 75 | m_label->hide(); |
| 76 | m_pixmap.load(uri); |
| 77 | layout()->setSizeConstraint(QLayout::SetNoConstraint); |
| 78 | resize(m_pixmap.size() / m_pixmap.devicePixelRatio()); |
| 79 | QWidget *parent = parentWidget(); |
| 80 | QPoint pos = parent ? (parent->rect().center() - rect().center()) : QPoint(); |
| 81 | if (textIndicator && textIndicator->geometry().intersects(QRect(pos, size()))) |
| 82 | pos.setY(textIndicator->geometry().bottom() + 1); |
| 83 | move(pos); |
| 84 | } |
| 85 | |
| 86 | void run(int ms) |
| 87 | { |
no test coverage detected