MCPcopy Create free account
hub / github.com/KDE/kdeconnect-kde / PresenterView

Method PresenterView

plugins/presenter/presenterplugin.cpp:29–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27{
28public:
29 PresenterView(const QString &filename)
30 : m_current(filename)
31 {
32 Qt::WindowFlags windowFlags = Qt::WindowFlags(Qt::WindowDoesNotAcceptFocus | Qt::WindowFullScreen | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint
33 | Qt::Tool | (int)(Qt::WA_TranslucentBackground));
34#ifdef Q_OS_WIN
35 windowFlags |= Qt::WindowTransparentForInput;
36#endif
37 setFlags(windowFlags);
38 setColor(QColor(Qt::transparent));
39
40 setResizeMode(QQuickView::SizeViewToRootObject);
41 setSource(QUrl(QStringLiteral("qrc:/presenter/%1").arg(filename)));
42
43 const auto ourErrors = errors();
44 for (const auto &error : ourErrors) {
45 qCWarning(KDECONNECT_PLUGIN_PRESENTER) << "error" << error.description() << error.url() << error.line() << error.column();
46 }
47 }
48
49 QString current() const
50 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected