Commit 16bc9430 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos and EBN issues

parent 89bedd36
...@@ -454,7 +454,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle, ...@@ -454,7 +454,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle,
} }
if (settings.contains(QLatin1String("page-set"))) { if (settings.contains(QLatin1String("page-set"))) {
// WARNING Qt internal private API, anyway the print dialog doesn't seem to // WARNING Qt internal private API, anyway the print dialog doesn't seem to
// read these propertis, but I'll leave it here in case this changes in future // read these properties, but I'll leave it here in case this changes in future
const QString pageSet = settings.value(QLatin1String("page-set")).toString(); const QString pageSet = settings.value(QLatin1String("page-set")).toString();
if (pageSet == QLatin1String("all")) { if (pageSet == QLatin1String("all")) {
QCUPSSupport::setPageSet(printer, QCUPSSupport::AllPages); QCUPSSupport::setPageSet(printer, QCUPSSupport::AllPages);
...@@ -473,7 +473,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle, ...@@ -473,7 +473,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle,
QCUPSSupport::PagesPerSheetLayout pagesPerSheetLayout = QCUPSSupport::LeftToRightTopToBottom; QCUPSSupport::PagesPerSheetLayout pagesPerSheetLayout = QCUPSSupport::LeftToRightTopToBottom;
if (settings.contains(QLatin1String("number-up"))) { if (settings.contains(QLatin1String("number-up"))) {
// WARNING Qt internal private API, anyway the print dialog doesn't seem to // WARNING Qt internal private API, anyway the print dialog doesn't seem to
// read these propertis, but I'll leave it here in case this changes in future // read these properties, but I'll leave it here in case this changes in future
const QString numberUp = settings.value(QLatin1String("number-up")).toString(); const QString numberUp = settings.value(QLatin1String("number-up")).toString();
if (numberUp == QLatin1String("1")) { if (numberUp == QLatin1String("1")) {
pagesPerSheet = QCUPSSupport::OnePagePerSheet; pagesPerSheet = QCUPSSupport::OnePagePerSheet;
...@@ -491,7 +491,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle, ...@@ -491,7 +491,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle,
} }
if (settings.contains(QLatin1String("number-up-layout"))) { if (settings.contains(QLatin1String("number-up-layout"))) {
// WARNING Qt internal private API, anyway the print dialog doesn't seem to // WARNING Qt internal private API, anyway the print dialog doesn't seem to
// read these propertis, but I'll leave it here in case this changes in future // read these properties, but I'll leave it here in case this changes in future
const QString layout = settings.value(QLatin1String("number-up-layout")).toString(); const QString layout = settings.value(QLatin1String("number-up-layout")).toString();
if (layout == QLatin1String("lrtb")) { if (layout == QLatin1String("lrtb")) {
pagesPerSheetLayout = QCUPSSupport::LeftToRightTopToBottom; pagesPerSheetLayout = QCUPSSupport::LeftToRightTopToBottom;
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#if !PW_CHECK_VERSION(0, 2, 9) #if !PW_CHECK_VERSION(0, 2, 9)
#include <spa/support/type-map.h> #include <spa/support/type-map.h>
#include <spa/param/format-utils.h> #include <spa/param/format-utils.h>
#include <spa/param/video/format-utils.h>
#include <spa/param/video/raw-utils.h> #include <spa/param/video/raw-utils.h>
#endif #endif
#include <spa/param/video/format-utils.h> #include <spa/param/video/format-utils.h>
......
...@@ -259,7 +259,7 @@ bool WaylandIntegration::WaylandIntegrationPrivate::startStreaming(const Wayland ...@@ -259,7 +259,7 @@ bool WaylandIntegration::WaylandIntegrationPrivate::startStreaming(const Wayland
void WaylandIntegration::WaylandIntegrationPrivate::stopStreaming() void WaylandIntegration::WaylandIntegrationPrivate::stopStreaming()
{ {
if (m_streamingEnabled) { if (m_streamingEnabled) {
// First unbound outputs and destroy remote access manager so we no longer recieve buffers // First unbound outputs and destroy remote access manager so we no longer receive buffers
if (m_remoteAccessManager) { if (m_remoteAccessManager) {
m_remoteAccessManager->release(); m_remoteAccessManager->release();
m_remoteAccessManager->destroy(); m_remoteAccessManager->destroy();
......
...@@ -36,7 +36,7 @@ int main(int argc, char *argv[]) ...@@ -36,7 +36,7 @@ int main(int argc, char *argv[])
if (sessionBus.registerService(QLatin1String("org.freedesktop.impl.portal.desktop.kde"))) { if (sessionBus.registerService(QLatin1String("org.freedesktop.impl.portal.desktop.kde"))) {
DesktopPortal *desktopPortal = new DesktopPortal(&a); DesktopPortal *desktopPortal = new DesktopPortal(&a);
if (sessionBus.registerObject(QLatin1String("/org/freedesktop/portal/desktop"), desktopPortal, QDBusConnection::ExportAdaptors)) { if (sessionBus.registerObject(QLatin1String("/org/freedesktop/portal/desktop"), desktopPortal, QDBusConnection::ExportAdaptors)) {
qCDebug(XdgDesktopPortalKde) << "Desktop portal registered successfuly"; qCDebug(XdgDesktopPortalKde) << "Desktop portal registered successfully";
} else { } else {
qCDebug(XdgDesktopPortalKde) << "Failed to register desktop portal"; qCDebug(XdgDesktopPortalKde) << "Failed to register desktop portal";
} }
......
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