Commit 20c2f3a0 authored by Laurent Montel's avatar Laurent Montel 😁

Fix compile (after enabled screencast)

parent 0a6c007f
......@@ -32,13 +32,13 @@ ScreenCastWidget::ScreenCastWidget(QWidget *parent)
QListWidgetItem *widgetItem = new QListWidgetItem(this);
widgetItem->setData(Qt::UserRole, it.key());
if (it.value().outputType() == WaylandIntegration::WaylandOutput::Laptop) {
widgetItem->setIcon(QIcon::fromTheme("computer-laptop"));
widgetItem->setIcon(QIcon::fromTheme(QStringLiteral("computer-laptop")));
widgetItem->setText(i18n("Laptop screen\nModel: %1", it.value().model()));
} else if (it.value().outputType() == WaylandIntegration::WaylandOutput::Monitor) {
widgetItem->setIcon(QIcon::fromTheme("video-display"));
widgetItem->setIcon(QIcon::fromTheme(QStringLiteral("video-display")));
widgetItem->setText(i18n("Manufacturer: %1\nModel: %2", it.value().manufacturer(), it.value().model()));
} else {
widgetItem->setIcon(QIcon::fromTheme("video-television"));
widgetItem->setIcon(QIcon::fromTheme(QStringLiteral("video-television")));
widgetItem->setText(i18n("Manufacturer: %1\nModel: %2", it.value().manufacturer(), it.value().model()));
}
}
......
......@@ -112,10 +112,10 @@ void WaylandIntegration::WaylandOutput::setOutputType(const QString &type)
}
}
if (type.contains("VGA") || type.contains("DVI") || type.contains("HDMI") || type.contains("Panel") ||
type.contains("DisplayPort") || type.startsWith("DP") || type.contains("unknown")) {
if (type.contains(QLatin1String("VGA")) || type.contains(QLatin1String("DVI")) || type.contains(QLatin1String("HDMI")) || type.contains(QLatin1String("Panel")) ||
type.contains(QLatin1String("DisplayPort")) || type.startsWith(QLatin1String("DP")) || type.contains(QLatin1String("unknown"))) {
m_outputType = OutputType::Monitor;
} else if (type.contains("TV")) {
} else if (type.contains(QLatin1String("TV"))) {
m_outputType = OutputType::Television;
} else {
m_outputType = OutputType::Monitor;
......@@ -244,7 +244,7 @@ void WaylandIntegration::WaylandIntegrationPrivate::initEGL()
}
qCDebug(XdgDesktopPortalKdeWaylandIntegration) << "Egl initialization succeeded";
qCDebug(XdgDesktopPortalKdeWaylandIntegration) << QString("EGL version: %1.%2").arg(major).arg(minor);
qCDebug(XdgDesktopPortalKdeWaylandIntegration) << QStringLiteral("EGL version: %1.%2").arg(major).arg(minor);
}
void WaylandIntegration::WaylandIntegrationPrivate::initWayland()
......@@ -327,7 +327,7 @@ void WaylandIntegration::WaylandIntegrationPrivate::processBuffer(const KWayland
auto stride = rbuf->stride();
auto format = rbuf->format();
qCDebug(XdgDesktopPortalKdeWaylandIntegration) << QString("Incoming GBM fd %1, %2x%3, stride %4, fourcc 0x%5").arg(gbmHandle).arg(width).arg(height).arg(stride).arg(QString::number(format, 16));
qCDebug(XdgDesktopPortalKdeWaylandIntegration) << QStringLiteral("Incoming GBM fd %1, %2x%3, stride %4, fourcc 0x%5").arg(gbmHandle).arg(width).arg(height).arg(stride).arg(QString::number(format, 16));
if (!m_streamingEnabled) {
qCDebug(XdgDesktopPortalKdeWaylandIntegration) << "Streaming is disabled";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment