]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix various typos
authorluz paz <luzpaz@users.noreply.github.com>
Mon, 6 Dec 2021 12:59:23 +0000 (07:59 -0500)
committerluz paz <luzpaz@users.noreply.github.com>
Mon, 6 Dec 2021 12:59:23 +0000 (07:59 -0500)
Found via `codespell -q 3 -S *.desktop,*.xml`

13 files changed:
src/dolphinnavigatorswidgetaction.h
src/dolphintabpage.h
src/dolphinurlnavigatorscontroller.h
src/dolphinviewcontainer.h
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h
src/kitemviews/private/kitemlistheaderwidget.cpp
src/kitemviews/private/kitemlistkeyboardsearchmanager.cpp
src/tests/kfileitemmodeltest.cpp
src/views/dolphinview.h
src/views/versioncontrol/kversioncontrolplugin.h
src/views/versioncontrol/versioncontrolobserver.cpp
src/views/versioncontrol/versioncontrolobserver.h

index 3f50728e93778c7e74eb3346b3cc31c26d424e5b..d33482201aed6adb56fc590fb579e23eb7c0eefb 100644 (file)
@@ -57,7 +57,7 @@ public:
      * This method should preferably only be called when:
      * - Split view is activated in the active tab
      * OR
-     * - A switch to a tab that is already in split view mode is occuring
+     * - A switch to a tab that is already in split view mode is occurring
      */
     void createSecondaryUrlNavigator();
 
@@ -92,7 +92,7 @@ protected:
      * this method always returns the same widget and reparents it.
      * You normally don't have to use this method directly because
      * QWidgetAction::requestWidget() is used to obtain the navigatorsWidget
-     * and to steal it from whereever it was prior.
+     * and to steal it from wherever it was prior.
      * @param parent the new parent of the navigatorsWidget.
      */
     QWidget *createWidget(QWidget *parent) override;
index f1a784eb7427a2d3264b908616951153006b89d4..a8c1ba31104607cb12060cbf0932b58c930ede94 100644 (file)
@@ -46,7 +46,7 @@ public:
      *
      * @param enabled      If true, creates a secondary viewContainer in this tab.
      *                     Otherwise deletes it.
-     * @param animated     Decides wether the effects of this method call should
+     * @param animated     Decides whether the effects of this method call should
      *                     happen instantly or be transitioned to smoothly.
      * @param secondaryUrl If \p enabled is true, the new viewContainer will be opened at this
      *                     parameter. The default value will set the Url of the new viewContainer
index 4f6802725fc38a84b299658e0e3f3aa325e82322..fec15f4811e4743214efdb95d33381bc90f34d4b 100644 (file)
@@ -41,7 +41,7 @@ public Q_SLOTS:
 
 private:
     /**
-     * @return wether the places selector of DolphinUrlNavigators should be visible.
+     * @return whether the places selector of DolphinUrlNavigators should be visible.
      */
     static bool placesSelectorVisible();
 
index be899ba23f44e22c0d8e71e98e96c9f26899d883..c4a0c5ba84d2b2eaaeb6b7755e2441bda6c0964a 100644 (file)
@@ -126,7 +126,7 @@ public:
     void connectUrlNavigator(DolphinUrlNavigator *urlNavigator);
 
     /**
-     * Disconnects the navigator that is currently controling the view.
+     * Disconnects the navigator that is currently controlling the view.
      * This method completely reverses connectUrlNavigator().
      */
     void disconnectUrlNavigator();
index ce2d9737c7eb583500d1c2a48571dd2a55a0e6ee..9492f6a44e2eed212d33458d3ad8c8e14479ca66 100644 (file)
@@ -2241,7 +2241,7 @@ QHash<QByteArray, qreal> KItemListView::preferredColumnWidths(const KItemRangeLi
         widths.insert(visibleRole, headerWidth);
     }
 
-    // Calculate the preferred column withs for each item and ignore values
+    // Calculate the preferred column widths for each item and ignore values
     // smaller than the width for showing the headline unclipped.
     const KItemListWidgetCreatorBase* creator = widgetCreator();
     int calculatedItemCount = 0;
index 760e0a4157e115bb08dd090e4fd45b5a85af8444..e28487b27c987612584be27e1664459cfe35a004 100644 (file)
@@ -597,7 +597,7 @@ private:
 
     /**
      * Resizes the column-widths of m_headerWidget based on the preferred widths
-     * and the vailable view-size.
+     * and the available view-size.
      */
     void applyAutomaticColumnWidths();
 
@@ -873,7 +873,7 @@ qreal KItemListWidgetCreator<T>::preferredRoleColumnWidth(const QByteArray& role
  * @brief Base class for creating KItemListGroupHeaders.
  *
  * It is recommended that applications simply use the KItemListGroupHeaderCreator-template class.
- * For a custom implementation the methods create() and recyle() must be reimplemented.
+ * For a custom implementation the methods create() and recycle() must be reimplemented.
  * The intention of the group-header creator is to prevent repetitive and expensive instantiations and
  * deletions of KItemListGroupHeaders by recycling existing header instances.
  */
index e5cbc602fd9d16fbc690a30cf3428700c4271f4f..9a7e850a9feee4e81ccc3fc59fd8a90ff51400b4 100644 (file)
@@ -251,7 +251,7 @@ void KItemListHeaderWidget::mouseMoveEvent(QGraphicsSceneMouseEvent* event)
     case NoRoleOperation:
         if ((event->pos() - m_pressedMousePos).manhattanLength() >= QApplication::startDragDistance()) {
             // A role gets dragged by the user. Create a pixmap of the role that will get
-            // synchronized on each furter mouse-move-event with the mouse-position.
+            // synchronized on each further mouse-move-event with the mouse-position.
             m_roleOperation = MoveRoleOperation;
             const int roleIndex = roleIndexAt(m_pressedMousePos);
             m_movingRole.index = roleIndex;
index 57a954adfb2c278ac5ab123bd5259ff477d8c185..0e6280edeffe8930f2238f071fd5763a0fb30f76 100644 (file)
@@ -55,7 +55,7 @@ void KItemListKeyboardSearchManager::addKeys(const QString& keys)
         const bool searchFromNextItem = (!m_isSearchRestarted && newSearch) || sameKey;
 
         // to remember not to searchFromNextItem if selection was deselected
-        // loosing keyboard search context basically
+        // losing keyboard search context basically
         m_isSearchRestarted = false;
 
         Q_EMIT changeCurrentItem(sameKey ? firstKey : m_searchedString, searchFromNextItem);
index 385a8fe758be5a75fdc13653e7461f13f882c70b..679b8ab3a3b5739b697c01856d40374889d7e113 100644 (file)
@@ -520,7 +520,7 @@ void KFileItemModelTest::testExpandItems()
     // Test expanding subfolders in a folder with the items "a/", "a/a/", "a/a/1", "a/a-1/", "a/a-1/1".
     // Besides testing the basic item expansion functionality, the test makes sure that
     // KFileItemModel::expansionLevelsCompare(const KFileItem& a, const KFileItem& b)
-    // yields the correct result for "a/a/1" and "a/a-1/", whis is non-trivial because they share the
+    // yields the correct result for "a/a/1" and "a/a-1/", which is non-trivial because they share the
     // first three characters.
     QSet<QByteArray> originalModelRoles = m_model->roles();
     QSet<QByteArray> modelRoles = originalModelRoles;
index 75c9dd9856a382b9f9e2126b1ad2b66d4218424e..11926d5582d7f1384d875723e3417065ce6d1b9d 100644 (file)
@@ -458,7 +458,7 @@ Q_SIGNALS:
     /** Is emitted if the 'grouped sorting' property has been changed. */
     void groupedSortingChanged(bool groupedSorting);
 
-    /** Is emmited in reaction to a requestStatusBarText() call.
+    /** Is emitted in reaction to a requestStatusBarText() call.
      * @see requestStatusBarText() */
     void statusBarTextChanged(QString statusBarText);
 
index b528f41cc2f89f50a94174b7ba8037552189d02a..d3a39fbd6b0e43ce190b0ebc0899a03ec53f8c94 100644 (file)
@@ -142,8 +142,8 @@ public:
     virtual QString fileName() const = 0;
 
     /**
-     * Returns the path of the local repository root for the versionned directory
-     * Returns an emtpy QString when directory is not part of a working copy
+     * Returns the path of the local repository root for the versioned directory
+     * Returns an empty QString when directory is not part of a working copy
      */
     virtual QString localRepositoryRoot(const QString& directory) const;
 
index 895ce6614ab332e8fd88e5a1342e7e036a1ac58f..a773aef6b397be9e4e76f5a1075a6e585e12abc0 100644 (file)
@@ -135,7 +135,7 @@ void VersionControlObserver::slotItemsChanged(const KItemRangeList& itemRanges,
 {
     Q_UNUSED(itemRanges)
 
-    // Because "version" role is emitted by VCS plugin (ourselfs) we don't need to
+    // Because "version" role is emitted by VCS plugin (ourselves) we don't need to
     // analyze it and update directory item states information. So lets check if
     // there is only "version".
     if ( !(roles.count() == 1 && roles.contains("version")) ) {
@@ -163,7 +163,7 @@ void VersionControlObserver::verifyDirectory()
             // by an immediate verification.
             m_dirVerificationTimer->setInterval(500);
         } else {
-            // View was versionned but should not be anymore
+            // View was versioned but should not be anymore
             updateItemStates();
         }
     } else if ((m_plugin = searchPlugin(rootItem.url()))) {
index 6e3977fb2a6d1f6fdb4e61709363c300014d9252..064a3088fc27bbbba587b6499180950bdc6dd3bf 100644 (file)
@@ -95,7 +95,7 @@ private Q_SLOTS:
 
     /**
      * Is invoked if the thread m_updateItemStatesThread has been finished
-     * and applys the item states.
+     * and applies the item states.
      */
     void slotThreadFinished();