MCPcopy Create free account
hub / github.com/KDE/okular / PageViewMessage

Method PageViewMessage

part/pageviewutils.cpp:195–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193/*********************/
194
195PageViewMessage::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
210void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected