From 17e92e72fc6ed2480965dd558410eeb7fc10dd4a Mon Sep 17 00:00:00 2001 From: Marius P Date: Sun, 16 Jun 2024 23:50:06 +0300 Subject: [PATCH] Proofreading --- .../qml/actiondrawer/LandscapeContentContainer.qml | 2 +- .../mobileshell/qml/actiondrawer/PortraitContentContainer.qml | 2 +- components/mobileshell/qml/components/PopupMenu.qml | 4 ++-- .../qml/widgets/notifications/BaseNotificationItem.qml | 2 +- containments/homescreens/folio/README.md | 2 +- containments/homescreens/folio/favouritesmodel.cpp | 2 +- .../folio/package/contents/ui/delegate/WidgetDelegate.qml | 2 +- .../package/contents/ui/NavigationPanelComponent.qml | 2 +- kcms/virtualkeyboard/gsettingsitem.h | 2 +- kwin/mobiletaskswitcher/qml/TaskList.qml | 2 +- shell/contents/lockscreen/LockScreenState.qml | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/components/mobileshell/qml/actiondrawer/LandscapeContentContainer.qml b/components/mobileshell/qml/actiondrawer/LandscapeContentContainer.qml index 180d3445..855c362c 100644 --- a/components/mobileshell/qml/actiondrawer/LandscapeContentContainer.qml +++ b/components/mobileshell/qml/actiondrawer/LandscapeContentContainer.qml @@ -17,7 +17,7 @@ import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.plasma.private.mobileshell as MobileShell /** - * Root element that contains all of the ActionDrawer's contents, and is anchored to the screen. + * Root element that contains all the ActionDrawer's contents, and is anchored to the screen. */ Item { id: root diff --git a/components/mobileshell/qml/actiondrawer/PortraitContentContainer.qml b/components/mobileshell/qml/actiondrawer/PortraitContentContainer.qml index 09d4ab5d..5d039917 100644 --- a/components/mobileshell/qml/actiondrawer/PortraitContentContainer.qml +++ b/components/mobileshell/qml/actiondrawer/PortraitContentContainer.qml @@ -14,7 +14,7 @@ import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.kirigami 2.20 as Kirigami /** - * Root element that contains all of the ActionDrawer's contents, and is anchored to the screen. + * Root element that contains all the ActionDrawer's contents, and is anchored to the screen. */ Item { id: root diff --git a/components/mobileshell/qml/components/PopupMenu.qml b/components/mobileshell/qml/components/PopupMenu.qml index 286af372..0d07702f 100644 --- a/components/mobileshell/qml/components/PopupMenu.qml +++ b/components/mobileshell/qml/components/PopupMenu.qml @@ -17,7 +17,7 @@ import org.kde.kirigami as Kirigami * Being it a FullScreenOverlay, no event is delivered to underlying components until it's closed. * * - property relatedTo: Item to which the popup is related; the popup will spawn either above or below it, depending on its y value. - * If no item is supplied, the popup will spawn at the centre of the screen. + * If no item is supplied, the popup will spawn at the center of the screen. * - property title: The title for the menu. * - property menuActions: The menu will be composed of these actions. * - function showOverlay(): Spawns the popup. @@ -48,7 +48,7 @@ NanoShell.FullScreenOverlay { readonly property point coordinates: { if (relatedTo) { // Place next to Item return mapFromGlobal(mappedGlobalCoordinates.x, mappedGlobalCoordinates.y); - } else { // Place at the centre of the screen + } else { // Place at the center of the screen return Qt.point((overlay.width - width) / 2, (overlay.height - height) / 2); } } diff --git a/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml b/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml index 46373215..60b7b7e3 100644 --- a/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml +++ b/components/mobileshell/qml/widgets/notifications/BaseNotificationItem.qml @@ -55,7 +55,7 @@ Item { readonly property string replySubmitButtonText: model.replySubmitButtonText || "" readonly property string replySubmitButtonIconName: model.replySubmitButtonIconName || "" - // configure button on every single notifications is bit overwhelming + // configure button on every single notifications is a bit overwhelming readonly property bool configurable: !inGroup && model.configurable readonly property bool dismissable: model.type === NotificationManager.Notifications.JobType diff --git a/containments/homescreens/folio/README.md b/containments/homescreens/folio/README.md index 0cc78094..caada58d 100644 --- a/containments/homescreens/folio/README.md +++ b/containments/homescreens/folio/README.md @@ -11,7 +11,7 @@ This is the paged homescreen for Plasma Mobile. Most of the homescreen is in C++ in order to keep logic together, with QML only responsible for the display and user input. -As such, all of the positioning and placement of delegates on the screen are top down from the model, as well as drag and drop behaviour. +As such, all the positioning and placement of delegates on the screen are top down from the model, as well as drag and drop behaviour. #### TODO - BUG: If an app gets uninstalled, the homescreen UI needs to ensure that delegates are updated diff --git a/containments/homescreens/folio/favouritesmodel.cpp b/containments/homescreens/folio/favouritesmodel.cpp index 6384f4c8..25009f63 100644 --- a/containments/homescreens/folio/favouritesmodel.cpp +++ b/containments/homescreens/folio/favouritesmodel.cpp @@ -321,7 +321,7 @@ bool FavouritesModel::dropPositionIsEdge(qreal x, qreal y) const qreal currentPos = startPosition; for (int i = 0; i < m_delegates.size(); i++) { - // if it is within the centre 70% of a delegate, it is not at an edge + // if it is within the center 70% of a delegate, it is not at an edge if (pos >= (currentPos + cellLength * 0.15) && pos <= (currentPos + cellLength * 0.85)) { return false; } diff --git a/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml b/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml index 5d676603..7f8d0ac0 100644 --- a/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml +++ b/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml @@ -33,7 +33,7 @@ Folio.WidgetContainer { width: implicitWidth height: implicitHeight - // prevent widget contents from going outside of the container + // prevent widget contents from going outside the container clip: true function updateVisualApplet() { diff --git a/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml b/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml index 73a2cdd1..ff01396b 100644 --- a/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml +++ b/containments/taskpanel/package/contents/ui/NavigationPanelComponent.qml @@ -86,7 +86,7 @@ MobileShell.NavigationPanel { enabled: Keyboards.KWinVirtualKeyboard.active || WindowPlugin.WindowUtil.hasCloseableActiveWindow iconSource: Keyboards.KWinVirtualKeyboard.active ? "go-down-symbolic" : "mobile-close-app" - // mobile-close-app (from plasma-frameworks) seems to have less margins than icons from breeze-icons + // mobile-close-app (from plasma-frameworks) seems to have fewer margins than icons from breeze-icons iconSizeFactor: Keyboards.KWinVirtualKeyboard.active ? 1 : 0.75 onTriggered: { diff --git a/kcms/virtualkeyboard/gsettingsitem.h b/kcms/virtualkeyboard/gsettingsitem.h index 176ec52b..257e75a8 100644 --- a/kcms/virtualkeyboard/gsettingsitem.h +++ b/kcms/virtualkeyboard/gsettingsitem.h @@ -43,4 +43,4 @@ private: } }; -#endif // GCONFITEM_H +#endif // GSETTINGSITEM_H diff --git a/kwin/mobiletaskswitcher/qml/TaskList.qml b/kwin/mobiletaskswitcher/qml/TaskList.qml index 7efd4011..00ddfab9 100644 --- a/kwin/mobiletaskswitcher/qml/TaskList.qml +++ b/kwin/mobiletaskswitcher/qml/TaskList.qml @@ -115,7 +115,7 @@ MouseArea { // only show header once task switcher is opened showHeader: !taskSwitcherState.gestureInProgress && !taskSwitcherHelpers.currentlyBeingClosed && !taskSwitcherHelpers.isInTaskScrubMode - // darken effect as task gets away from the centre of the screen + // darken effect as task gets away from the center of the screen darken: { const distFromCentreProgress = Math.abs(x - repeater.leftMargin) / taskSwitcherHelpers.taskWidth; const upperBoundAdjust = Math.min(0.5, distFromCentreProgress) - 0.2; diff --git a/shell/contents/lockscreen/LockScreenState.qml b/shell/contents/lockscreen/LockScreenState.qml index cb1f82ba..a08a7908 100644 --- a/shell/contents/lockscreen/LockScreenState.qml +++ b/shell/contents/lockscreen/LockScreenState.qml @@ -21,7 +21,7 @@ QtObject { // whether the lockscreen was passwordless property bool passwordless: false // TODO true - // whether the device can login with fingerprint + // whether the device can log in with fingerprint readonly property bool isFingerprintSupported: authenticator.authenticatorTypes & ScreenLocker.Authenticator.Fingerprint signal reset()