| 27 | { |
| 28 | public: |
| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected