Fix minor EBN issues and typos

wilder-portage-prov
Yuri Chornoivan 6 years ago
parent 1ed28b1615
commit 99450132b1
  1. 4
      applets/appmenu/lib/appmenuapplet.cpp
  2. 2
      dataengines/weather/ions/envcan/ion_envcan.cpp
  3. 2
      dataengines/weather/ions/noaa/ion_noaa.cpp
  4. 8
      klipper/historyimageitem.cpp
  5. 2
      klipper/klipperpopup.h
  6. 2
      libnotificationmanager/jobsmodel.h
  7. 2
      libnotificationmanager/notification.cpp
  8. 2
      libnotificationmanager/notificationsmodel.cpp
  9. 4
      libnotificationmanager/server.h
  10. 2
      plasma-windowed/plasmawindowedcorona.cpp
  11. 2
      runners/calculator/calculatorrunner.cpp
  12. 2
      runners/services/servicerunner.h
  13. 2
      runners/windowedwidgets/windowedwidgetsrunner.h
  14. 2
      xembed-sni-proxy/sniproxy.cpp

@ -42,7 +42,7 @@ AppMenuApplet::AppMenuApplet(QObject *parent, const QVariantList &data)
: Plasma::Applet(parent, data)
{
++s_refs;
//if we're the first, regster the service
//if we're the first, register the service
if (s_refs == 1) {
QDBusConnection::sessionBus().interface()->registerService(viewService(),
QDBusConnectionInterface::QueueService,
@ -62,7 +62,7 @@ AppMenuApplet::AppMenuApplet(QObject *parent, const QVariantList &data)
QDBusConnection::sessionBus().interface()->unregisterService(viewService());
}
} else {
//if we're the first, regster the service
//if we're the first, register the service
if (++s_refs == 1) {
QDBusConnection::sessionBus().interface()->registerService(viewService(),
QDBusConnectionInterface::QueueService,

@ -709,7 +709,7 @@ void EnvCanadaIon::parseWeatherSite(WeatherData& data, QXmlStreamReader& xml)
}
}
// Parse Weather data main loop, from here we have to decend into each tag pair
// Parse Weather data main loop, from here we have to descend into each tag pair
bool EnvCanadaIon::readXMLData(const QString& source, QXmlStreamReader& xml)
{
WeatherData data;

@ -462,7 +462,7 @@ void NOAAIon::parseWeatherSite(WeatherData& data, QXmlStreamReader& xml)
}
}
// Parse Weather data main loop, from here we have to decend into each tag pair
// Parse Weather data main loop, from here we have to descend into each tag pair
bool NOAAIon::readXMLData(const QString& source, QXmlStreamReader& xml)
{
WeatherData data;

@ -47,10 +47,10 @@ QString HistoryImageItem::text() const {
if (m_text.isNull()) {
m_text =
QStringLiteral("") +
i18n("%1x%2 %3bpp")
.arg(m_data.width())
.arg(m_data.height())
.arg(m_data.depth());
i18n("%1x%2 %3bpp",
m_data.width(),
m_data.height(),
m_data.depth());
}
return m_text;
}

@ -1,6 +1,6 @@
/* This file is part of the KDE project
Copyright (C) 2004 Esben Mose Hansen <kde@mosehansen.dk>
Copytight (C) by Andrew Stanley-Jones
Copyright (C) by Andrew Stanley-Jones
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either

@ -50,7 +50,7 @@ public:
bool init();
/**
* Whether the notification service could be reigstered
* Whether the notification service could be registered
*/
bool isValid() const;

@ -59,7 +59,7 @@ QString Notification::Private::sanitize(const QString &text)
t = t.simplified();
// Finally, check if we don't have multiple <br/>s following,
// can happen for example when "\n \n" is sent, this replaces
// all <br/>s in succsession with just one
// all <br/>s in succession with just one
t.replace(QRegularExpression(QStringLiteral("<br/>\\s*<br/>(\\s|<br/>)*")), QLatin1String("<br/>"));
// This fancy RegExp escapes every occurrence of & since QtQuick Text will blatantly cut off
// text where it finds a stray ampersand.

@ -390,7 +390,7 @@ void NotificationsModel::configure(const QString &desktopEntry, const QString &n
{
// TODO would be nice to just have a signal but since NotificationsModel is shared,
// if we connect to this from Notifications you would get a signal in every instance
// and potentialy open the config dialog multiple times.
// and potentially open the config dialog multiple times.
QStringList args;
if (!desktopEntry.isEmpty()) {

@ -62,7 +62,7 @@ class NOTIFICATIONMANAGER_EXPORT Server : public QObject
/**
* Whether notifications are currently inhibited.
*
* This is what is announced to other applicatons on the bus.
* This is what is announced to other applications on the bus.
*
* @note This does not keep track of inhibitions on its own,
* you need to calculate this yourself and update the property accordingly.
@ -171,7 +171,7 @@ public:
Q_SIGNALS:
/**
* Emitted when the notification service validity changes,
* because it sucessfully registered the service or lost
* because it successfully registered the service or lost
* ownership of it.
* @since 5.18
*/

@ -50,7 +50,7 @@ void PlasmaWindowedCorona::loadApplet(const QString &applet, const QVariantList
Plasma::Containment *cont = containments().first();
//forbid more instances per applet (todo: activate the correpsponding already loaded applet)
//forbid more instances per applet (todo: activate the corresponding already loaded applet)
for (Plasma::Applet *a : cont->applets()) {
if (a->pluginMetaData().pluginId() == applet) {
return;

@ -261,7 +261,7 @@ void CalculatorRunner::match(Plasma::RunnerContext &context)
userFriendlySubstitutions(cmd);
#ifndef ENABLE_QALCULATE
cmd.replace(QRegExp(QStringLiteral("([a-zA-Z]+)")), QStringLiteral("Math.\\1")); //needed for accessing math funktions like sin(),....
cmd.replace(QRegExp(QStringLiteral("([a-zA-Z]+)")), QStringLiteral("Math.\\1")); //needed for accessing math functions like sin(),....
#endif
bool isApproximate = false;

@ -28,7 +28,7 @@
/**
* This class looks for matches in the set of .desktop files installed by
* applications. This way the user can type exactly what they see in the
* appications menu and have it start the appropriate app. Essentially anything
* applications menu and have it start the appropriate app. Essentially anything
* that KService knows about, this runner can launch
*/

@ -28,7 +28,7 @@
/**
* This class looks for matches in the set of .desktop files installed by
* applications. This way the user can type exactly what they see in the
* appications menu and have it start the appropriate app. Essentially anything
* applications menu and have it start the appropriate app. Essentially anything
* that KService knows about, this runner can launch
*/

@ -258,7 +258,7 @@ QSize SNIProxy::calculateClientWindowSize() const
//if the window is a clearly stupid size resize to be something sensible
//this is needed as chromium and such when resized just fill the icon with transparent space and only draw in the middle
//however KeePass2 does need this as by default the window size is 273px wide and is not transparent
//use an artbitrary heuristic to make sure icons are always sensible
//use an arbitrary heuristic to make sure icons are always sensible
if (clientWindowSize.isEmpty() || clientWindowSize.width() > s_embedSize || clientWindowSize.height() > s_embedSize) {
qCDebug(SNIPROXY) << "Resizing window" << m_windowId << Title() << "from w*h" << clientWindowSize;

Loading…
Cancel
Save