Fix various typos

Fixes typos in various source comments.  
Found via `codespell -S "*.po,*.svg,*.pgm,*.xml,./po,*.desktop,*.json,*.actions" -L aline,aparent,childs,distroname,indexin,indx,logicaly,lokal,nd,splitted,te`
This commit is contained in:
Kunda Ki 2025-09-05 12:21:15 +00:00
parent 59186cc7b1
commit 7f3dcab42b
15 changed files with 25 additions and 25 deletions

View file

@ -22,10 +22,10 @@ Item {
id: root id: root
/* /*
* The intended visiblity of the action drawer. * The intended visibility of the action drawer.
* *
* This is separate from "visible" in order to avoid having to set * This is separate from "visible" in order to avoid having to set
* item visiblity when its on its own window (wasteful since the window itself can be shown/hidden). * item visibility when it's on its own window (wasteful since the window itself can be shown/hidden).
*/ */
property bool intendedToBeVisible: false property bool intendedToBeVisible: false

View file

@ -49,7 +49,7 @@ Item {
} }
// notification list widget // notification list widget
// margin adjusted to fit and postion into the action drawer // margin adjusted to fit and position into the action drawer
MobileShell.NotificationsWidget { MobileShell.NotificationsWidget {
id: notificationWidget id: notificationWidget
anchors.fill: parent anchors.fill: parent
@ -74,7 +74,7 @@ Item {
} }
} }
// the first swipe when at the top of the notification list is handeled using a MouseArea, not the flickable // the first swipe when at the top of the notification list is handled using a MouseArea, not the flickable
// this is so one can swipe down from the top of the notification drawer to expand the action drawer // this is so one can swipe down from the top of the notification drawer to expand the action drawer
DragHandler { DragHandler {
id: dragHandler id: dragHandler

View file

@ -126,7 +126,7 @@ Item {
SwipeView { SwipeView {
id: swipeView id: swipeView
// we need to clip this view here to prevent the other quick settings pages from being visable // we need to clip this view here to prevent the other quick settings pages from being visible
// when fullViewProgress is not less then 1 and the base view is no longer being clipped // when fullViewProgress is not less then 1 and the base view is no longer being clipped
clip: true clip: true

View file

@ -29,7 +29,7 @@ Item {
panelType === PanelBackground.PanelType.Drawer || panelType === PanelBackground.PanelType.Drawer ||
panelType === PanelBackground.PanelType.Popup || panelType === PanelBackground.PanelType.Popup ||
panelType === PanelBackground.PanelType.Wallpaper panelType === PanelBackground.PanelType.Wallpaper
// whether to use the complex shadow effect - note that this uses more perfomance // whether to use the complex shadow effect - note that this uses more performance
readonly property bool complexShadow: shadow && readonly property bool complexShadow: shadow &&
(panelType === PanelBackground.PanelType.Base || (panelType === PanelBackground.PanelType.Base ||
panelType === PanelBackground.PanelType.Drawer || panelType === PanelBackground.PanelType.Drawer ||

View file

@ -133,7 +133,7 @@ Item {
easing.type: Easing.OutExpo easing.type: Easing.OutExpo
} }
// if the popup height ever changes, update the notification below wiht new height // if the popup height ever changes, update the notification below with new height
// also update the allowed touch area for the main window // also update the allowed touch area for the main window
onPopupHeightChanged: { onPopupHeightChanged: {
let abovePopup = popupNotifications.objectAt(popupIndex + 1) let abovePopup = popupNotifications.objectAt(popupIndex + 1)
@ -145,14 +145,14 @@ Item {
} }
} }
// if the offset position need in the expanded drawer changes, update the notification below wiht new offset // if the offset position need in the expanded drawer changes, update the notification below with new offset
onFullOpenOffsetChanged: { onFullOpenOffsetChanged: {
let abovePopup = popupNotifications.objectAt(popupIndex + 1) let abovePopup = popupNotifications.objectAt(popupIndex + 1)
if (popupIndex + 1 < popupCount && abovePopup) { if (popupIndex + 1 < popupCount && abovePopup) {
abovePopup.aboveNotificationFullOffset = fullOpenOffset; abovePopup.aboveNotificationFullOffset = fullOpenOffset;
} }
} }
// if the notification is being draged and is the current one // if the notification is being dragged and is the current one
// update 'currentDragOffset' so all notifications can easily access this value // update 'currentDragOffset' so all notifications can easily access this value
onDragOffsetChanged: { onDragOffsetChanged: {
let abovePopup = popupNotifications.objectAt(popupIndex + 1) let abovePopup = popupNotifications.objectAt(popupIndex + 1)
@ -564,14 +564,14 @@ Item {
notificationPopup.preventDismissTimeout = true; notificationPopup.preventDismissTimeout = true;
if (!active && !(notificationItem.state == "closeWithScale" || notificationItem.state == "closeWithMove")) { if (!active && !(notificationItem.state == "closeWithScale" || notificationItem.state == "closeWithMove")) {
if ((lastOffset - notificationPopup.dragOffset > 1.0 && notificationPopup.dragOffset < 0) || (-(notificationPopup.openOffset - notificationPopup.closedOffset) / 4 > notificationPopup.dragOffset)) { if ((lastOffset - notificationPopup.dragOffset > 1.0 && notificationPopup.dragOffset < 0) || (-(notificationPopup.openOffset - notificationPopup.closedOffset) / 4 > notificationPopup.dragOffset)) {
// this code is called when the notifition is swiped or draged to the top. // this code is called when the notification is swiped or dragged to the top.
notificationPopup.closedWithSwipe = true; notificationPopup.closedWithSwipe = true;
notificationPopup.closePopup(popupIndex); notificationPopup.closePopup(popupIndex);
return; return;
} }
dragOffsetAn.running = true; dragOffsetAn.running = true;
if (notificationPopup.dragOffset - lastOffset > 1.0 || Kirigami.Units.gridUnit * 3 < notificationPopup.dragOffset) { if (notificationPopup.dragOffset - lastOffset > 1.0 || Kirigami.Units.gridUnit * 3 < notificationPopup.dragOffset) {
// this code is called when the notifition is swiped or draged down. // this code is called when the notification is swiped or dragged down.
} }
notificationPopup.preventDismissTimeout = (keyboardInteractivity == LayerShell.Window.KeyboardInteractivityOnDemand); notificationPopup.preventDismissTimeout = (keyboardInteractivity == LayerShell.Window.KeyboardInteractivityOnDemand);
} else { } else {

View file

@ -88,7 +88,7 @@ Window {
if (popupDrawerOpened) { if (popupDrawerOpened) {
ShellUtil.setInputRegion(notificationPopupManager, Qt.rect(0, 0, 0, 0)); ShellUtil.setInputRegion(notificationPopupManager, Qt.rect(0, 0, 0, 0));
} else { } else {
// get the height of the popup directly to ensure we get the lastest version // get the height of the popup directly to ensure we get the latest version
let popupHeight = Kirigami.Units.gridUnit * 6; let popupHeight = Kirigami.Units.gridUnit * 6;
let currentPopup = notifications.objectAt(notifications.currentPopupIndex); let currentPopup = notifications.objectAt(notifications.currentPopupIndex);
if (currentPopup) { if (currentPopup) {

View file

@ -67,7 +67,7 @@ void WaydroidApplicationListModel::loadApplications(const QList<WaydroidApplicat
std::sort(toRemove.begin(), toRemove.end()); std::sort(toRemove.begin(), toRemove.end());
// Remove indices first, from end to start to avoid indicies changing // Remove indices first, from end to start to avoid indices changing
for (int i = toRemove.size() - 1; i >= 0; --i) { for (int i = toRemove.size() - 1; i >= 0; --i) {
int ind = toRemove[i]; int ind = toRemove[i];
@ -171,7 +171,7 @@ void WaydroidApplicationListModel::installApk(const QString apkFile)
Q_EMIT actionFinished(i18n("Application has been installed")); Q_EMIT actionFinished(i18n("Application has been installed"));
} else { } else {
Q_EMIT errorOccurred(i18n("Installation Failed")); Q_EMIT errorOccurred(i18n("Installation Failed"));
qCWarning(WAYDROIDINTEGRATIONPLUGIN) << "Error occured during installation of " << apkFile << ": " << process->readAllStandardError(); qCWarning(WAYDROIDINTEGRATIONPLUGIN) << "Error occurred during installation of " << apkFile << ": " << process->readAllStandardError();
} }
}); });
} }
@ -194,7 +194,7 @@ void WaydroidApplicationListModel::deleteApplication(const QString appId)
Q_EMIT actionFinished(i18n("Application has been deleted")); Q_EMIT actionFinished(i18n("Application has been deleted"));
} else { } else {
Q_EMIT errorOccurred(i18n("Application uninstall failed")); Q_EMIT errorOccurred(i18n("Application uninstall failed"));
qCWarning(WAYDROIDINTEGRATIONPLUGIN) << "Error occured during uninstallation of " << appId << ": " << errorLog; qCWarning(WAYDROIDINTEGRATIONPLUGIN) << "Error occurred during uninstallation of " << appId << ": " << errorLog;
} }
}); });
} }

View file

@ -113,7 +113,7 @@ void ApplicationListModel::load()
std::sort(toRemove.begin(), toRemove.end()); std::sort(toRemove.begin(), toRemove.end());
// Remove indices first, from end to start to avoid indicies changing // Remove indices first, from end to start to avoid indices changing
for (int i = toRemove.size() - 1; i >= 0; --i) { for (int i = toRemove.size() - 1; i >= 0; --i) {
int ind = toRemove[i]; int ind = toRemove[i];

View file

@ -18,7 +18,7 @@ DelegateTouchArea::DelegateTouchArea(QQuickItem *parent)
m_pressAndHoldTimer->setSingleShot(true); m_pressAndHoldTimer->setSingleShot(true);
connect(m_pressAndHoldTimer, &QTimer::timeout, this, &DelegateTouchArea::startPressAndHold); connect(m_pressAndHoldTimer, &QTimer::timeout, this, &DelegateTouchArea::startPressAndHold);
// Explcitly call setCursor on QQuickItem since // Explicitly call setCursor on QQuickItem since
// it internally keeps a boolean hasCursor that doesn't // it internally keeps a boolean hasCursor that doesn't
// get set to true unless you call setCursor // get set to true unless you call setCursor
setCursor(Qt::ArrowCursor); setCursor(Qt::ArrowCursor);

View file

@ -56,7 +56,7 @@ void PinnedModel::addApp(const QString &storageId, int row)
beginInsertRows(QModelIndex(), row, row); beginInsertRows(QModelIndex(), row, row);
m_applications.insert(row, app); m_applications.insert(row, app);
m_folders.insert(row, nullptr); // maintain indicies m_folders.insert(row, nullptr); // maintain indices
endInsertRows(); endInsertRows();
save(); save();

View file

@ -68,7 +68,7 @@ ColumnLayout {
} }
// Some informations as IP address can take time to be set by Waydroid // Some information such as IP address can take time to be set by Waydroid
Timer { Timer {
id: autoRefreshSessionTimer id: autoRefreshSessionTimer
interval: 2000 interval: 2000

View file

@ -82,7 +82,7 @@ MouseArea {
} }
} }
// the postition offset value for non-active tasks in the task drawer // the position offset value for non-active tasks in the task drawer
// this value is normalized and is usually set to 0, 1, or 2 (larger the number, the further they are from the active task) // this value is normalized and is usually set to 0, 1, or 2 (larger the number, the further they are from the active task)
property real baseTaskOffset: 0 property real baseTaskOffset: 0

View file

@ -72,7 +72,7 @@ FocusScope {
hide(); hide();
} else if (tasksCount < oldTasksCount) { } else if (tasksCount < oldTasksCount) {
if (state.currentTaskIndex < 0) { if (state.currentTaskIndex < 0) {
// if the user is on the frist task, and it is closed, scroll right // if the user is on the first task, and it is closed, scroll right
taskSwitcherHelpers.animateGoToTaskIndex(0, Kirigami.Units.longDuration); taskSwitcherHelpers.animateGoToTaskIndex(0, Kirigami.Units.longDuration);
} else if (state.currentTaskIndex >= tasksCount) { } else if (state.currentTaskIndex >= tasksCount) {
// if the user is on the last task, and it is closed, scroll left // if the user is on the last task, and it is closed, scroll left
@ -273,7 +273,7 @@ FocusScope {
if (root.taskSwitcherHelpers.gestureState < TaskSwitcherHelpers.GestureStates.TaskSwitcher) { if (root.taskSwitcherHelpers.gestureState < TaskSwitcherHelpers.GestureStates.TaskSwitcher) {
root.setTaskDrawerState(TaskSwitcherHelpers.GestureStates.Home) root.setTaskDrawerState(TaskSwitcherHelpers.GestureStates.Home)
} }
// if the touch is above heightThreshold, it will retrun home // if the touch is above heightThreshold, it will return home
if (unmodifiedYposition > root.taskSwitcherHelpers.heightThreshold) { if (unmodifiedYposition > root.taskSwitcherHelpers.heightThreshold) {
root.taskSwitcherHelpers.hasVibrated = true; root.taskSwitcherHelpers.hasVibrated = true;
if (root.taskSwitcherHelpers.notHomeScreenState) { if (root.taskSwitcherHelpers.notHomeScreenState) {
@ -420,7 +420,7 @@ FocusScope {
} }
} }
// kind of a hack, but this prevents the gesture from immediately activting the task switcher when it is not supposed to // kind of a hack, but this prevents the gesture from immediately activating the task switcher when it is not supposed to
Timer { Timer {
id: taskSwitchCanLaunchTimer id: taskSwitchCanLaunchTimer
interval: 1; running: true; repeat: false interval: 1; running: true; repeat: false

View file

@ -84,7 +84,7 @@ QtObject {
// we don't want to continuously send haptics, just once is enough // we don't want to continuously send haptics, just once is enough
property bool hasVibrated: false property bool hasVibrated: false
// The current gesture state to decide what will happpen when it is completed // The current gesture state to decide what will happen when it is completed
enum GestureStates { enum GestureStates {
Undecided, Undecided,
HorizontalSwipe, HorizontalSwipe,

View file

@ -31,7 +31,7 @@ enum NightColorMode {
*/ */
Timings, Timings,
/** /**
* Color temperature is constant thoughout the day. * Color temperature is constant throughout the day.
*/ */
Constant, Constant,
}; };