| 57 | } |
| 58 | |
| 59 | void setText(const QString &text) |
| 60 | { |
| 61 | m_pixmap = QPixmap(); |
| 62 | m_label->setText(text); |
| 63 | m_effect->setOpacity(.6); // because of the fat opaque background color |
| 64 | layout()->setSizeConstraint(QLayout::SetFixedSize); |
| 65 | adjustSize(); |
| 66 | QWidget *parent = parentWidget(); |
| 67 | QPoint pos = parent ? (parent->rect().center() - rect().center()) : QPoint(); |
| 68 | if (pixmapIndicator && pixmapIndicator->geometry().intersects(QRect(pos, size()))) |
| 69 | pos.setY(pixmapIndicator->geometry().bottom() + 1); |
| 70 | move(pos); |
| 71 | } |
| 72 | |
| 73 | void setPixmap(const QString &uri) |
| 74 | { |
no outgoing calls