| 193 | /*********************/ |
| 194 | |
| 195 | PageViewMessage::PageViewMessage(QWidget *parent) |
| 196 | : QWidget(parent) |
| 197 | , m_timer(nullptr) |
| 198 | , m_lineSpacing(0) |
| 199 | { |
| 200 | setObjectName(QStringLiteral("pageViewMessage")); |
| 201 | setFocusPolicy(Qt::NoFocus); |
| 202 | // if the layout is LtR, we can safely place it in the right position |
| 203 | if (layoutDirection() == Qt::LeftToRight) { |
| 204 | move(10, 10); |
| 205 | } |
| 206 | resize(0, 0); |
| 207 | hide(); |
| 208 | } |
| 209 | |
| 210 | void PageViewMessage::display(const QString &message, const QString &details, Icon icon, int durationMs) |
| 211 | // give Caesar what belongs to Caesar: code taken from Amarok's osd.h/.cpp |
nothing calls this directly
no outgoing calls
no test coverage detected