diff options
| author | Kunda Ki <[email protected]> | 2025-09-03 12:04:13 +0000 |
|---|---|---|
| committer | Kunda Ki <[email protected]> | 2025-09-03 12:04:13 +0000 |
| commit | 479ce3a1641398a8506812300834666614013850 (patch) | |
| tree | e137016cebe538153d07b010f350842d6c3a6f25 /src/kitemviews | |
| parent | 93dd0db2eeb1fc41013e87e73f7fbd1956f26cd6 (diff) | |
Fix several user-facing and non-user-facing typos
Found via `codespell -S "*.desktop,*.po,*.svg,*.xml,./po" -L aparent,childs,goup,lokal`
Diffstat (limited to 'src/kitemviews')
| -rw-r--r-- | src/kitemviews/accessibility/kitemlistdelegateaccessible.cpp | 6 | ||||
| -rw-r--r-- | src/kitemviews/accessibility/kitemlistviewaccessible.cpp | 2 | ||||
| -rw-r--r-- | src/kitemviews/accessibility/kitemlistviewaccessible.h | 2 | ||||
| -rw-r--r-- | src/kitemviews/kfileitemlisttostring.h | 2 | ||||
| -rw-r--r-- | src/kitemviews/kfileitemmodel.cpp | 2 | ||||
| -rw-r--r-- | src/kitemviews/kstandarditemlistview.h | 2 | ||||
| -rw-r--r-- | src/kitemviews/kstandarditemlistwidget.cpp | 2 | ||||
| -rw-r--r-- | src/kitemviews/kstandarditemlistwidget.h | 2 | ||||
| -rw-r--r-- | src/kitemviews/private/kdirectorycontentscounterworker.cpp | 2 | ||||
| -rw-r--r-- | src/kitemviews/private/kitemlistheaderwidget.cpp | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/src/kitemviews/accessibility/kitemlistdelegateaccessible.cpp b/src/kitemviews/accessibility/kitemlistdelegateaccessible.cpp index dcfe3af80..b50b71daf 100644 --- a/src/kitemviews/accessibility/kitemlistdelegateaccessible.cpp +++ b/src/kitemviews/accessibility/kitemlistdelegateaccessible.cpp @@ -177,12 +177,12 @@ QString KItemListDelegateAccessible::text(QAccessible::Text t) const continue; // No need to announce roles which are empty for this item. } description += - // i18n: The text starts with a comma because multiple occurences of this text can follow after each others as an enumeration. + // i18n: The text starts with a comma because multiple occurrences of this text can follow after each others as an enumeration. // Normally it would make sense to have a colon between property and value to make the relation between the property and its property value // clear, however this is accessible text that will be read out by screen readers. That's why there is only a space between the two here, // because screen readers would read the colon literally as "colon", which is just a waste of time for users who might go through a list of - // hundreds of items. So, if you want to add any more punctation there to improve structure, try to make sure that it will not lead to annoying - // announcements when read out by a screen reader. + // hundreds of items. So, if you want to add any more punctuation there to improve structure, try to make sure that it will not lead to + // annoying announcements when read out by a screen reader. i18nc("@info accessibility enumeration, %1 is property, %2 is value", ", %1 %2", model->roleDescription(roleInformation), roleText); } return description; diff --git a/src/kitemviews/accessibility/kitemlistviewaccessible.cpp b/src/kitemviews/accessibility/kitemlistviewaccessible.cpp index f58527be6..319b69f30 100644 --- a/src/kitemviews/accessibility/kitemlistviewaccessible.cpp +++ b/src/kitemviews/accessibility/kitemlistviewaccessible.cpp @@ -261,7 +261,7 @@ QString KItemListViewAccessible::text(QAccessible::Text t) const /** * Always announce the path last because it might be very long. - * We do not need to announce the total count of items here because accessibility software like Orca alrady announces this automatically for lists. + * We do not need to announce the total count of items here because accessibility software like Orca already announces this automatically for lists. */ if (!currentItem) { return i18nc("@info 1 states that the folder is empty and sometimes why, 2 is the full filesystem path", diff --git a/src/kitemviews/accessibility/kitemlistviewaccessible.h b/src/kitemviews/accessibility/kitemlistviewaccessible.h index 64b5a2442..5ab1ee5c3 100644 --- a/src/kitemviews/accessibility/kitemlistviewaccessible.h +++ b/src/kitemviews/accessibility/kitemlistviewaccessible.h @@ -27,7 +27,7 @@ class KItemListSelectionManager; * interact with the view using accessibility tools. It implements various interfaces mostly to generally allow working with the view as a whole. However, * actually interacting with singular items within the view is implemented in KItemListDelegateAccessible. * - * @note For documentation of most of the methods within this class, check out the documentation of the methods which are being overriden here. + * @note For documentation of most of the methods within this class, check out the documentation of the methods which are being overridden here. */ class DOLPHIN_EXPORT KItemListViewAccessible : public QAccessibleObject, public QAccessibleSelectionInterface, diff --git a/src/kitemviews/kfileitemlisttostring.h b/src/kitemviews/kfileitemlisttostring.h index 1cba1a43c..69ecd35a1 100644 --- a/src/kitemviews/kfileitemlisttostring.h +++ b/src/kitemviews/kfileitemlisttostring.h @@ -18,7 +18,7 @@ enum ItemsState { None, Selected }; * @brief Generates a textual representation of the given list of KFileItems. * * This method is especially useful to be very explicit about which items will be affected by an action. - * For example can a label for a delete button be enriched to say "Permanantly Delete `picture1` and `picture2`" + * For example can a label for a delete button be enriched to say "Permanently Delete `picture1` and `picture2`" * but also "Permanently Delete 7 Selected Folders" without requiring a huge amount of new translations for this. * * Unfortunately this doesn't always work. diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 4386bca16..9bba37e78 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -830,7 +830,7 @@ void KFileItemModel::applyFilters() itemShownBelow = itemData; } else { // We hide this item for now, however, for expanded folders this is not final: - // if after the next "for" loop we discover that its children must now be shown with the newly applied fliter, we shall re-insert it + // if after the next "for" loop we discover that its children must now be shown with the newly applied filter, we shall re-insert it newFilteredIndexes.prepend(index); m_filteredItems.insert(itemData->item, itemData); // indexShownBelow doesn't get updated since this item will be hidden diff --git a/src/kitemviews/kstandarditemlistview.h b/src/kitemviews/kstandarditemlistview.h index eb2f01d19..681ff3bef 100644 --- a/src/kitemviews/kstandarditemlistview.h +++ b/src/kitemviews/kstandarditemlistview.h @@ -45,7 +45,7 @@ protected: void initializeItemListWidget(KItemListWidget *item) override; bool itemSizeHintUpdateRequired(const QSet<QByteArray> &changedRoles) const override; virtual bool itemLayoutSupportsItemExpanding(ItemLayout layout) const; - /** To be overriden by sub-classes to specify when full row highlighting should be enabled. */ + /** To be overridden by sub-classes to specify when full row highlighting should be enabled. */ virtual bool itemLayoutHighlightEntireRow(ItemLayout layout) const; virtual void onItemLayoutChanged(ItemLayout current, ItemLayout previous); virtual qreal scrollSingleStep() const override; diff --git a/src/kitemviews/kstandarditemlistwidget.cpp b/src/kitemviews/kstandarditemlistwidget.cpp index f14414a86..d98aed94c 100644 --- a/src/kitemviews/kstandarditemlistwidget.cpp +++ b/src/kitemviews/kstandarditemlistwidget.cpp @@ -1550,7 +1550,7 @@ void KStandardItemListWidget::updateAdditionalInfoTextColor() QPixmap KStandardItemListWidget::addOverlays(const QPixmap &pixmap, const QHash<Qt::Corner, QString> &overlays, const QSize &size, qreal dpr, QIcon::Mode mode) const { - // similar to KIconUtils::addOverlays, keep in sync preferrably + // similar to KIconUtils::addOverlays, keep in sync preferably if (overlays.isEmpty()) { return pixmap; } diff --git a/src/kitemviews/kstandarditemlistwidget.h b/src/kitemviews/kstandarditemlistwidget.h index cabe3a8c9..9e6fff935 100644 --- a/src/kitemviews/kstandarditemlistwidget.h +++ b/src/kitemviews/kstandarditemlistwidget.h @@ -61,7 +61,7 @@ protected: * @param role The role the text is being requested for. * @param values The data of the item. All the data is passed because the text might depend on multiple data points. * @param forUsageAs Whether the roleText should be optimized for displaying (i.e. kept somewhat short) or optimized for speaking e.g. by screen readers - * or text-to-speech in general (i.e. by prefering announcing a month as July instead of as the number 7). + * or text-to-speech in general (i.e. by preferring announcing a month as July instead of as the number 7). * @return String representation of the role \a role. The representation of * a role might depend on other roles, so the values of all roles * are passed as parameter. diff --git a/src/kitemviews/private/kdirectorycontentscounterworker.cpp b/src/kitemviews/private/kdirectorycontentscounterworker.cpp index 57cf7b1bc..8a69fb4e2 100644 --- a/src/kitemviews/private/kdirectorycontentscounterworker.cpp +++ b/src/kitemviews/private/kdirectorycontentscounterworker.cpp @@ -84,7 +84,7 @@ void KDirectoryContentsCounterWorker::walkDir(const QString &dirPath, bool count if (info == FTS_D) { if (node->fts_level == 0) { - // first read was sucessful, we can init counters + // first read was successful, we can init counters totalSize = 0; totalCount = 0; } diff --git a/src/kitemviews/private/kitemlistheaderwidget.cpp b/src/kitemviews/private/kitemlistheaderwidget.cpp index 3dc82ad6b..378dd1d5d 100644 --- a/src/kitemviews/private/kitemlistheaderwidget.cpp +++ b/src/kitemviews/private/kitemlistheaderwidget.cpp @@ -244,7 +244,7 @@ void KItemListHeaderWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) if (m_pressedGrip) { // Emitting a column width change removes automatic column resizing, so we do not emit if only the padding is being changed. - // Eception: In mouseMoveEvent() we also resize the last column if the right padding is at zero but the user still quickly resizes beyond the screen + // Exception: In mouseMoveEvent() we also resize the last column if the right padding is at zero but the user still quickly resizes beyond the screen // boarder. Such a resize "of the right padding" is let through when automatic column resizing was disabled by that resize. if (m_pressedGrip->roleToTheLeft != "leftPadding" && (m_pressedGrip->roleToTheRight != "rightPadding" || !m_automaticColumnResizing)) { const qreal currentWidth = m_columnWidths.value(m_pressedGrip->roleToTheLeft); |
