aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-09-19 17:05:08 +0200
committerLaurent Montel <[email protected]>2018-09-19 17:05:08 +0200
commit20c2f3a0f9703569c807052996a6d591f644c846 (patch)
tree83d10b92b9ab10b3bb3c4fc29da89fd5dd569ba1
parent0a6c007fd6d19d46dc875d262cdb45a487581751 (diff)
Fix compile (after enabled screencast)
-rw-r--r--src/screencastwidget.cpp6
-rw-r--r--src/waylandintegration.cpp10
2 files changed, 8 insertions, 8 deletions
diff --git a/src/screencastwidget.cpp b/src/screencastwidget.cpp
index 3b142a1..2dd121a 100644
--- a/src/screencastwidget.cpp
+++ b/src/screencastwidget.cpp
@@ -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()));
}
}
diff --git a/src/waylandintegration.cpp b/src/waylandintegration.cpp
index 9d6af7f..e08443e 100644
--- a/src/waylandintegration.cpp
+++ b/src/waylandintegration.cpp
@@ -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";