Commit 3be08932 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor typos and issues found by EBN

parent 5e7e87ca
......@@ -70,7 +70,7 @@ MouseArea {
BadgeOverlay {
anchors.fill: batteryIcon
text: batteryContainer.hasBattery ? i18nc("battery percentage below battery icon", "%1%", percent) : i18nc("short symbol to signal there is no battery curently available", "-")
text: batteryContainer.hasBattery ? i18nc("battery percentage below battery icon", "%1%", percent) : i18nc("short symbol to signal there is no battery currently available", "-")
icon: batteryIcon
visible: plasmoid.configuration.showPercentage
}
......
......@@ -170,7 +170,7 @@ ColumnLayout{
if (dndMenu.date.getDay() >= 5) {
d = dndMenu.date;
d.setHours(dndMorningHour);
// wraps around if neccessary
// wraps around if necessary
d.setDate(d.getDate() + (7 - d.getDay() + 1));
d.setMinutes(0);
d.setSeconds(0);
......
......@@ -33,7 +33,7 @@ MouseArea {
id: thumbnailArea
// The protocol supports multiple URLs but so far it's only used to show
// a single preview image, so this code is simplified a lot to accomodate
// a single preview image, so this code is simplified a lot to accommodate
// this usecase and drops everything else (fallback to app icon or ListView
// for multiple files)
property var urls
......
......@@ -69,7 +69,7 @@ void MenuImporter::RegisterWindow(WId id, const QDBusObjectPath& path)
KWindowInfo info(id, NET::WMWindowType, NET::WM2WindowClass);
NET::WindowTypes mask = NET::AllTypesMask;
// Menu can try to register, right click in gimp for exemple
// Menu can try to register, right click in gimp for example
if (info.windowType(mask) & (NET::Menu|NET::DropdownMenu|NET::PopupMenu)) {
return;
}
......
......@@ -456,7 +456,7 @@ void AppletsLayout::geometryChanged(const QRectF &newGeometry, const QRectF &old
return;
}
// Don't care for anythin happening before startup completion
// Don't care for anything happening before startup completion
if (!m_containment || !m_containment->corona() || !m_containment->corona()->isStartupCompleted()) {
QQuickItem::geometryChanged(newGeometry, oldGeometry);
return;
......
......@@ -105,7 +105,7 @@ private:
*/
void adjustToItemSizeHints(ItemContainer *item);
// What is the item that occupies the point. The point is expressed in cells rather than pixels. a qpair rather a QPointF as QHash doesn't support indicization by QPointF
// What is the item that occupies the point. The point is expressed in cells rather than pixels. a qpair rather a QPointF as QHash doesn't support identification by QPointF
QHash <QPair<int, int>, ItemContainer *> m_grid;
QHash <ItemContainer *, QSet<QPair<int, int> > > m_pointsForItem;
......
......@@ -392,7 +392,7 @@ void ItemContainer::geometryChanged(const QRectF &newGeometry, const QRectF &old
void ItemContainer::componentComplete()
{
if (!m_contentItem) {
//qWarning()<<"Creting default contentItem";
//qWarning()<<"Creating default contentItem";
m_contentItem = new QQuickItem(this);
syncChildItemsGeometry(size());
}
......
......@@ -55,7 +55,7 @@
#include <KPackage/PackageLoader>
//TODO:
// interative help?
// interactive help?
static const QString s_autosaveFileName(QStringLiteral("interactiveconsoleautosave.js"));
static const QString s_kwinService = QStringLiteral("org.kde.KWin");
......
......@@ -224,7 +224,7 @@ void ContextMenu::startLogout()
{
// this short delay is due to two issues:
// a) KWorkSpace's DBus alls are all synchronous
// b) the destrution of the menu that this action is in is delayed
// b) the destruction of the menu that this action is in is delayed
//
// (a) leads to the menu hanging out where everyone can see it because
// the even loop doesn't get returned to allowing it to close.
......
......@@ -101,7 +101,7 @@ class ActionDetailModel : public QAbstractTableModel {
DESCRIPTION_COL = 2
};
QList<ClipCommand> m_commands;
QVariant displayData(ClipCommand* command, column_t colunm) const;
QVariant displayData(ClipCommand* command, column_t column) const;
QVariant editData(ClipCommand* command, column_t column) const;
QVariant decorationData(ClipCommand* command, column_t column) const;
void setIconForCommand(ClipCommand& cmd);
......
......@@ -69,7 +69,7 @@ namespace {
*
* This avoids issues such as mouse-selections that immediately
* disappear.
* pattern: Resource Acqusition is Initialisation (RAII)
* pattern: Resource Acquisition is Initialisation (RAII)
*
* (This is not threadsafe, so don't try to use such in threaded
* applications).
......
......@@ -117,7 +117,7 @@ void PopupProxy::tryInsertItem( HistoryItem const * const item,
// It would be much easier to use QMenu::initStyleOptions. But that is protected, so until we have a better
// excuse to subclass that, I'd rather implement this manually.
// Note 2 properties, tabwidth and maxIconWidth, are not available from the public interface, so those are left out (probably not
// important for height. Also, Exlsive checkType is disregarded as I don't think we will ever use it)
// important for height. Also, Exclusive checkType is disregarded as I don't think we will ever use it)
style_options.initFrom(m_proxy_for_menu);
style_options.checkType = action->isCheckable() ? QStyleOptionMenuItem::NonExclusive : QStyleOptionMenuItem::NotCheckable;
style_options.checked = action->isChecked();
......
......@@ -65,7 +65,7 @@ class RegistryWatcherThread : public QThread
void run()
{
//FIXME: the timezonechange needs to be handled diffrently
//FIXME: the timezonechange needs to be handled differently
#ifndef _WIN32
if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE, currentTimeZoneKey, 0, KEY_READ, &key ) == ERROR_SUCCESS )
{
......
......@@ -377,7 +377,7 @@ KDisplayManager::exec(const char *cmd)
* @param buf the result buffer.
* @return result:
* @li If true, the command was successfully executed.
* @p ret might contain addional results.
* @p ret might contain additional results.
* @li If false and @p ret is empty, a communication error occurred
* (most probably KDM is not running).
* @li If false and @p ret is non-empty, it contains the error message
......
......@@ -62,11 +62,11 @@ void NotificationTest::parse_data()
QTest::newRow("image remote URL") << "This is <img src=\"http://foo.com/boo.png\" alt=\"cheese\" /> and more text" << "This is <img alt=\"cheese\"/> and more text";
//more bad formatted options. To some extent actual output doesn't matter. Garbage in, garbabe out.
//more bad formatted options. To some extent actual output doesn't matter. Garbage in, garbage out.
//the important thing is that it doesn't contain anything that could be parsed as the remote URL
QTest::newRow("image remote URL no close") << "This is <img src=\"http://foo.com/boo.png>\" alt=\"cheese\"> and more text" << "This is <img alt=\"cheese\"> and more text</img>";
QTest::newRow("image remote URL double open") << "This is <<img src=\"http://foo.com/boo.png>\" and more text" << "This is ";
QTest::newRow("image remote URL no entitiy close") << "This is <img src=\"http://foo.com/boo.png\" and more text" << "This is ";
QTest::newRow("image remote URL no entity close") << "This is <img src=\"http://foo.com/boo.png\" and more text" << "This is ";
QTest::newRow("image remote URL space in element name") << "This is < img src=\"http://foo.com/boo.png\" alt=\"cheese\" /> and more text" << "This is ";
QTest::newRow("link") << "This is a link <a href=\"http://foo.com/boo\"/> and more text" << "This is a link <a href=\"http://foo.com/boo\"/> and more text";
......
......@@ -38,8 +38,6 @@
#include "jobviewv2adaptor.h"
#include "jobviewv3adaptor.h"
#include <QDebug>
using namespace NotificationManager;
JobPrivate::JobPrivate(uint id, QObject *parent)
......
......@@ -41,8 +41,6 @@
#include "debug.h"
#include "notifications.h"
using namespace NotificationManager;
Notification::Private::Private()
......
......@@ -155,7 +155,7 @@ Q_SIGNALS:
void notificationRemoved(uint id, CloseReason reason);
/**
* Emitted when the inhbited state changed.
* Emitted when the inhibited state changed.
*/
void inhibitedChanged(bool inhibited);
......
......@@ -73,7 +73,7 @@ QString Utils::desktopEntryFromPid(uint pid)
QModelIndex Utils::mapToModel(const QModelIndex &idx, const QAbstractItemModel *sourceModel)
{
// KModelIndexProxyMapper can only map diferent indices to a single source
// KModelIndexProxyMapper can only map different indices to a single source
// but we have the other way round, a single index that splits into different source models
QModelIndex resolvedIdx = idx;
while (resolvedIdx.isValid() && resolvedIdx.model() != sourceModel) {
......
......@@ -203,7 +203,7 @@ void TasksModel::Private::initModels()
// This is particularly useful in concert with taskmanagerrulesrc's SkipTaskbar
// key, which is used to hide window tasks which update from bogus to useful
// window metadata early in startup. The role change then coincides with positive
// app identication, which is when updateManualSortMap() becomes able to sort the
// app identification, which is when updateManualSortMap() becomes able to sort the
// task adjacent to its launcher when required to do so.
if (sortMode == SortManual && roles.contains(AbstractTasksModel::SkipTaskbar)) {
updateManualSortMap();
......@@ -930,7 +930,7 @@ bool TasksModel::Private::lessThan(const QModelIndex &left, const QModelIndex &r
case SortActivity: {
// updateActivityTaskCounts() counts the number of window tasks on each
// activity. This will sort tasks by comparing a cumulative score made
// up of the task counts for each acvtivity a task is assigned to, and
// up of the task counts for each activity a task is assigned to, and
// otherwise fall through to alphabetical sorting.
int leftScore = -1;
int rightScore = -1;
......@@ -1719,7 +1719,7 @@ bool TasksModel::move(int row, int newPos, const QModelIndex &parent)
// Move launcher for launcher-backed task along with task if launchers
// are not being kept separate.
// We don't need to resort again because the launcher is implictly hidden
// We don't need to resort again because the launcher is implicitly hidden
// at this time.
if (!idx.data(AbstractTasksModel::IsLauncher).toBool()) {
const int launcherPos = d->launcherTasksModel->launcherPosition(launcherUrl);
......
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