From 7898cd7837bd7f3e8ee7b025c182660f7f82ee7f Mon Sep 17 00:00:00 2001 From: Kunda Ki Date: Mon, 22 Sep 2025 15:21:10 +0000 Subject: [PATCH] Cleanup: Fix various typos Fixes several user-facing and non-user-facing typos. Found via: `codespell -S "*.actions,*.appdata.xml,*.desktop,*.json,*.kksrc,*.metainfo.xml,*.notifyrc,*.po,./po,*.xml" -L claus,doubleclick,filetest,flate,mis,nam,previousy,propt,substract,virtualy` --- applets/kickoff/Footer.qml | 2 +- applets/kickoff/KickoffListView.qml | 2 +- applets/kickoff/ListOfGridsViewDelegate.qml | 2 +- applets/taskmanager/package/contents/ui/GroupDialog.qml | 2 +- attica-kde/kdeplugin/kdeplatformdependent.cpp | 2 +- containments/desktop/package/contents/ui/ConfigFilter.qml | 2 +- .../desktop/plugins/folder/autotests/positionertest.cpp | 2 +- .../desktop/plugins/folder/autotests/screenmappertest.cpp | 2 +- containments/desktop/plugins/folder/positioner.cpp | 4 ++-- containments/panel/LayoutManager.js | 2 +- design/remotewidgets | 2 +- desktoppackage/contents/explorer/WidgetExplorer.qml | 2 +- emojier/emojidict.cpp | 2 +- kcms/keyboard/tastenbrett/qml/ShapeCanvas.qml | 2 +- kcms/keyboard/tastenbrett/qml/main.qml | 2 +- kcms/keys/kcm_keys.cpp | 2 +- kcms/runners/plugininstaller/AbstractJob.h | 2 +- kcms/tablet/inputsequence.h | 2 +- 18 files changed, 19 insertions(+), 19 deletions(-) diff --git a/applets/kickoff/Footer.qml b/applets/kickoff/Footer.qml index 9b5ec49196..376ecde922 100644 --- a/applets/kickoff/Footer.qml +++ b/applets/kickoff/Footer.qml @@ -48,7 +48,7 @@ PlasmaExtras.PlasmoidHeading { implicitWidth: contentWidth + leftPadding + rightPadding implicitHeight: contentHeight + topPadding + bottomPadding - // This is needed to keep the sparators horizontally aligned + // This is needed to keep the separators horizontally aligned leftPadding: mirrored ? root.spacing : 0 rightPadding: !mirrored ? root.spacing : 0 diff --git a/applets/kickoff/KickoffListView.qml b/applets/kickoff/KickoffListView.qml index 4150adc8ea..c7787493e0 100644 --- a/applets/kickoff/KickoffListView.qml +++ b/applets/kickoff/KickoffListView.qml @@ -117,7 +117,7 @@ EmptyPage { focus: true interactive: height < contentHeight pixelAligned: true - reuseItems: false // explicitely disabled because it doesnt work correctly with switching models like we do + reuseItems: false // explicitly disabled because it doesn't work correctly with switching models like we do boundsBehavior: Flickable.StopAtBounds // default keyboard navigation doesn't allow focus reasons to be used // and eats up/down key events when at the beginning or end of the list. diff --git a/applets/kickoff/ListOfGridsViewDelegate.qml b/applets/kickoff/ListOfGridsViewDelegate.qml index 6bd670748c..445b40684a 100644 --- a/applets/kickoff/ListOfGridsViewDelegate.qml +++ b/applets/kickoff/ListOfGridsViewDelegate.qml @@ -19,7 +19,7 @@ KickoffGridView { property int gridIndex: -1 // To know the index of the grid when used inside a listivew property bool isCurrentSectionGrid: false property bool isSearchFieldActive: false // needed since check doesn't work here when gridview used in all apps - property ListView parentView // neeeded when used inside a listview e.g. all apps view + property ListView parentView // needed when used inside a listview e.g. all apps view signal showSectionView(string sectionName) diff --git a/applets/taskmanager/package/contents/ui/GroupDialog.qml b/applets/taskmanager/package/contents/ui/GroupDialog.qml index 3bf3d8fb60..b5a572fd13 100644 --- a/applets/taskmanager/package/contents/ui/GroupDialog.qml +++ b/applets/taskmanager/package/contents/ui/GroupDialog.qml @@ -66,7 +66,7 @@ PlasmaCore.PopupPlasmaWindow { Component.onCompleted: { // Don't bind visible at creation, otherwise it - // vill be made visible before assigning the visual partent + // will be made visible before assigning the visual partent // making the window flickering in the center of the screen before being moved // in the correct position visible = true diff --git a/attica-kde/kdeplugin/kdeplatformdependent.cpp b/attica-kde/kdeplugin/kdeplatformdependent.cpp index db170f8029..2498d1cf88 100644 --- a/attica-kde/kdeplugin/kdeplatformdependent.cpp +++ b/attica-kde/kdeplugin/kdeplatformdependent.cpp @@ -234,7 +234,7 @@ bool Attica::KdePlatformDependent::isReady() } // TODO Don't just cache it forever, so reset to nullptr every so often, so we pick up potential new stuff the user's done -// NOTE The above todo is nonesense. Whatever changes the credentials should broadcast that something changed and then we +// NOTE The above todo is nonsense. Whatever changes the credentials should broadcast that something changed and then we // should reload. Also reloading shouldn't clear the m_accessToken but simply overwrite with a new one - sitter, 2024 void Attica::KdePlatformDependent::loadAccessToken() { diff --git a/containments/desktop/package/contents/ui/ConfigFilter.qml b/containments/desktop/package/contents/ui/ConfigFilter.qml index 759ba2e42f..e71daf53e8 100644 --- a/containments/desktop/package/contents/ui/ConfigFilter.qml +++ b/containments/desktop/package/contents/ui/ConfigFilter.qml @@ -152,7 +152,7 @@ KCM.ScrollViewKCM { Layout.fillHeight: true implicitWidth: Kirigami.Units.iconSizes.small implicitHeight: Kirigami.Units.iconSizes.small - animated: false // TableView re-uses delegates, avoid animation when sorting/filtering. + animated: false // TableView reuses delegates, avoid animation when sorting/filtering. source: decoration } Label { diff --git a/containments/desktop/plugins/folder/autotests/positionertest.cpp b/containments/desktop/plugins/folder/autotests/positionertest.cpp index 3465a4e239..7e1a13bf86 100644 --- a/containments/desktop/plugins/folder/autotests/positionertest.cpp +++ b/containments/desktop/plugins/folder/autotests/positionertest.cpp @@ -130,7 +130,7 @@ void PositionerTest::tst_move() if (configChanged) { QCOMPARE_NE(baselineConfig, getCurrentConfig()); } else { - // If our movement doesnt change anything, config is equal + // If our movement doesn't change anything, config is equal QCOMPARE(baselineConfig, getCurrentConfig()); } } diff --git a/containments/desktop/plugins/folder/autotests/screenmappertest.cpp b/containments/desktop/plugins/folder/autotests/screenmappertest.cpp index 4312b8c41d..2e457339e1 100644 --- a/containments/desktop/plugins/folder/autotests/screenmappertest.cpp +++ b/containments/desktop/plugins/folder/autotests/screenmappertest.cpp @@ -251,7 +251,7 @@ void ScreenMapperTest::tst_readAndSaveItemsOnActivitiesOnDisabledScreens() // clang-format on QStringList seralizedMap; - // Create a seralized QStringList from expectedMapping + // Create a serialized QStringList from expectedMapping for (const auto &l : expectedMapping) { for (const auto &s : l) { seralizedMap.append(s); diff --git a/containments/desktop/plugins/folder/positioner.cpp b/containments/desktop/plugins/folder/positioner.cpp index 28ab607d76..554b6cc136 100644 --- a/containments/desktop/plugins/folder/positioner.cpp +++ b/containments/desktop/plugins/folder/positioner.cpp @@ -96,7 +96,7 @@ void Positioner::setPerStripe(int perStripe) if (configurationHasResolution(m_resolution)) { loadAndApplyPositionsConfig(SkipPerStripeUpdate); } - // If no longer defering positions, update them + // If no longer deferring positions, update them if (!m_deferApplyPositions) { updatePositionsList(); } @@ -491,7 +491,7 @@ void Positioner::sourceStatusChanged() { if (m_deferApplyPositions && m_folderModel->status() != FolderModel::Listing) { convertFolderModelData(); - // If no longer defering positions, update them + // If no longer deferring positions, update them if (!m_deferApplyPositions) { updatePositionsList(); } diff --git a/containments/panel/LayoutManager.js b/containments/panel/LayoutManager.js index a79c84311e..5ebf2a9bef 100644 --- a/containments/panel/LayoutManager.js +++ b/containments/panel/LayoutManager.js @@ -107,7 +107,7 @@ function childAtCoordinates(x, y) { while (!child) { if (root.isHorizontal) { // Only yields incorrect results for widgets smaller than the - // row/column spacing, which is luckly fairly unrealistic + // row/column spacing, which is luckily fairly unrealistic x -= layout.rowSpacing } else { y -= layout.columnSpacing diff --git a/design/remotewidgets b/design/remotewidgets index fc6daa5fb5..f7edbaf3d4 100644 --- a/design/remotewidgets +++ b/design/remotewidgets @@ -27,7 +27,7 @@ The plasma shell can control the security aspects of remote widgets, combined wi Security wise, every incoming message will get processed as follows: -Every message that gets sent to the server get's a signature appended. Signing happens with an RSA key that is generated for you if it doesn't exist already, and then stored in the kde wallet, so your private key for signing doesn't change from that moment on. When starting a connection, the full credentials of the client are sent along, later messages just contain a hash of the key to identify the sender without having to put all the information in every message. +Every message that gets sent to the server gets a signature appended. Signing happens with an RSA key that is generated for you if it doesn't exist already, and then stored in the kde wallet, so your private key for signing doesn't change from that moment on. When starting a connection, the full credentials of the client are sent along, later messages just contain a hash of the key to identify the sender without having to put all the information in every message. Whenever a message is received and the Credential's trustLevel is at least ValidCredentials (meaning, the signature of the message is at least valid for the public key), the combination service name and public key signature is used to see if there are any AuthorizationRules that already match this request. These are both rules defined in /etc/plasma-remotewidgets.conf and rules that are created for the current plasma session only. If a matching rule is found, it is applied (that is, the message is either accepted or denied). Else a new rule is created, that is at that moment still Undefined. This rule, containing an instance of Credential that can be used to obtain a trustLevel, will be passed to the active AuthorizationInterface's authorizationRequest. The interface can then decide to either accept or deny the request, or request PIN pairing, in which case the user will have to enter the same password on both client and server to establish a connection. NOT YET IMPLEMENTED: additionally, a message can also be signed with a GPG key, in which case the trustLevel can go beyond ValidCredentials. Either by having that key in your trusted keyring, or, for UltimateCredentials, having it signed by the plasma overlords themselves. diff --git a/desktoppackage/contents/explorer/WidgetExplorer.qml b/desktoppackage/contents/explorer/WidgetExplorer.qml index 4d6b217847..1cade09138 100644 --- a/desktoppackage/contents/explorer/WidgetExplorer.qml +++ b/desktoppackage/contents/explorer/WidgetExplorer.qml @@ -278,7 +278,7 @@ PC3.Page { bottomMargin: footerContainer.visible ? 0 : - main.sidePanel.margins.bottom } - // The scrollbar changing visibiliy can lead to the content size changing due to word wrap + // The scrollbar changing visibility can lead to the content size changing due to word wrap // A delayed binding gives some extra time, it'll come to a stop as there's only one scroll bar property bool scrollBarVisible: false Binding on scrollBarVisible { diff --git a/emojier/emojidict.cpp b/emojier/emojidict.cpp index 4e015e6b93..cce8232b7d 100644 --- a/emojier/emojidict.cpp +++ b/emojier/emojidict.cpp @@ -33,7 +33,7 @@ void EmojiDict::load(const QString &path) // We use a fixed version to keep it binary compatible. // Also we do not use advanced data type so it does not matter. stream.setVersion(QDataStream::Qt_5_15); - // Explicitly set endianess to ensure it's not relevant to architecture. + // Explicitly set endianness to ensure it's not relevant to architecture. stream.setByteOrder(QDataStream::LittleEndian); QList emojis; stream >> emojis; diff --git a/kcms/keyboard/tastenbrett/qml/ShapeCanvas.qml b/kcms/keyboard/tastenbrett/qml/ShapeCanvas.qml index 8483b63c4b..1b94753017 100644 --- a/kcms/keyboard/tastenbrett/qml/ShapeCanvas.qml +++ b/kcms/keyboard/tastenbrett/qml/ShapeCanvas.qml @@ -51,7 +51,7 @@ Canvas { ctx.translate(translation, translation) ctx.scale(scale, scale) - // Acount for offset bounds (positive or negative!) + // Account for offset bounds (positive or negative!) ctx.translate(-shape.bounds.x, -shape.bounds.y) ctx.beginPath() diff --git a/kcms/keyboard/tastenbrett/qml/main.qml b/kcms/keyboard/tastenbrett/qml/main.qml index e782c848dc..743c11bac2 100644 --- a/kcms/keyboard/tastenbrett/qml/main.qml +++ b/kcms/keyboard/tastenbrett/qml/main.qml @@ -97,7 +97,7 @@ Window { visible: hoverArea.containsMouse contentItem: Item { - scale: kbd.scale * 3 // make keys easily redable at 2.5 times the regular size + scale: kbd.scale * 3 // make keys easily readable at 2.5 times the regular size Key { id: keyItem diff --git a/kcms/keys/kcm_keys.cpp b/kcms/keys/kcm_keys.cpp index d7897e4946..4772e228f4 100644 --- a/kcms/keys/kcm_keys.cpp +++ b/kcms/keys/kcm_keys.cpp @@ -163,7 +163,7 @@ void KCMKeys::loadScheme(const QUrl &url) KConfig copy(QString(), KConfig::SimpleConfig); file.copyTo(QString(), ©); KConfigGroup commandsGroup(©, QStringLiteral("Custom Commands")); - // Importing Custom Commmands: + // Importing Custom Commands: // - check if the command already exists // - if yes, and its the same component, there is nothing to do // - otherwise need to add command and/or migrate config diff --git a/kcms/runners/plugininstaller/AbstractJob.h b/kcms/runners/plugininstaller/AbstractJob.h index fe5c2f8c7e..9d47701b7b 100644 --- a/kcms/runners/plugininstaller/AbstractJob.h +++ b/kcms/runners/plugininstaller/AbstractJob.h @@ -18,7 +18,7 @@ public: /** * @param fileInfo QFileInfo of the file or directory * @param mimeType Mime type of the file - * @param install Set to true if the entry should be installed, flase if it should be uninstalled + * @param install Set to true if the entry should be installed, false if it should be uninstalled */ virtual void executeOperation(const QFileInfo &fileInfo, const QString &mimeType, bool install) = 0; diff --git a/kcms/tablet/inputsequence.h b/kcms/tablet/inputsequence.h index 08b930f1e2..b2e390f8a4 100644 --- a/kcms/tablet/inputsequence.h +++ b/kcms/tablet/inputsequence.h @@ -12,7 +12,7 @@ /** * @brief Represents an input sequence that happens on a tablet button action, which could be a variety of types. - * Currently suppoerted is "Disabled", "Keyboard", "Mouse" or "Application-defined". + * Currently supported is "Disabled", "Keyboard", "Mouse" or "Application-defined". */ class InputSequence {