From a16d17a8bf375127847ac8f40af1ebcdb841b13c Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 15 Jan 2025 03:00:47 -0500 Subject: [PATCH] Fix various typos (#692) * Fix various typos Found via `codespell -q 3 -L te,ridiculus,varius` * Add another typo fix --- README.md | 2 +- doc/user-guide.md | 2 +- src/DockAreaWidget.cpp | 8 ++++---- src/DockComponentsFactory.h | 2 +- src/DockManager.cpp | 2 +- src/ads_globals.cpp | 2 +- src/ads_globals.h | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index bbdd05c..a16f4f8 100644 --- a/README.md +++ b/README.md @@ -582,7 +582,7 @@ highlights are: - Simple Drag & Drop user interface. - Load data from file. - Connect to live streaming of data. -- Save the visualization layout and configurations to re-use them later. +- Save the visualization layout and configurations to reuse them later. - Fast OpenGL visualization. - Can handle thousands of timeseries and millions of data points. - Transform your data using a simple editor: derivative, moving average, integral, etc… diff --git a/doc/user-guide.md b/doc/user-guide.md index 66bada3..9832d35 100644 --- a/doc/user-guide.md +++ b/doc/user-guide.md @@ -853,7 +853,7 @@ When an entire area is closed, the default behavior is to hide the dock widgets It is possible to globally lock features of all dock widgets to "freeze" the current workspace layout. That means, you can now lock your workspace -to avoid accidentally dragging a docked view. When locking was't possible, +to avoid accidentally dragging a docked view. When locking wasn't possible, users had to manually dock it back to the desired place after each accidental undock. diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index cba0650..ddd514a 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -270,7 +270,7 @@ struct DockAreaWidgetPrivate DockAreaWidgetPrivate(CDockAreaWidget* _public); /** - * Convencience function to ease components factory access + * Convenience function to ease components factory access */ QSharedPointer componentsFactory() const { @@ -379,10 +379,10 @@ void DockAreaWidgetPrivate::updateTitleBarButtonStates() if (_this->isAutoHide()) { - if (CDockManager::testAutoHideConfigFlag(CDockManager::AutoHideHasCloseButton)) - { + if (CDockManager::testAutoHideConfigFlag(CDockManager::AutoHideHasCloseButton)) + { TitleBar->button(TitleBarButtonClose)->setEnabled( - _this->features().testFlag(CDockWidget::DockWidgetClosable)); + _this->features().testFlag(CDockWidget::DockWidgetClosable)); } } else diff --git a/src/DockComponentsFactory.h b/src/DockComponentsFactory.h index 28d15a6..6ea8818 100644 --- a/src/DockComponentsFactory.h +++ b/src/DockComponentsFactory.h @@ -67,7 +67,7 @@ public: /** * This returns the default dock components factory instance. - * If no components factory is assigned to a specifc dock manager, this + * If no components factory is assigned to a specific dock manager, this * global factory instance will be used. */ static QSharedPointer factory(); diff --git a/src/DockManager.cpp b/src/DockManager.cpp index 6b99334..99b432c 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -555,7 +555,7 @@ CDockManager::~CDockManager() { if (!area || area->dockManager() != this) continue; - // QPointer delete safety - just in case some dock wigdet in destruction + // QPointer delete safety - just in case some dock widget in destruction // deletes another related/twin or child dock widget. std::vector> deleteWidgets; for ( auto widget : area->dockWidgets() ) diff --git a/src/ads_globals.cpp b/src/ads_globals.cpp index 7d3cf7e..b019318 100644 --- a/src/ads_globals.cpp +++ b/src/ads_globals.cpp @@ -283,7 +283,7 @@ QString detectWindowManagerX11() } if(sup_windows.length() == 0) { - ADS_PRINT("Failed to get the supporting window on non EWMH comform WM."); + ADS_PRINT("Failed to get the supporting window on non EWMH conform WM."); return "UNKNOWN"; } support_win = sup_windows[0]; diff --git a/src/ads_globals.h b/src/ads_globals.h index 83deecc..f7ccc8e 100644 --- a/src/ads_globals.h +++ b/src/ads_globals.h @@ -236,7 +236,7 @@ SideBarLocation toSideBarLocation(DockWidgetArea Area); /** - * Returns true for the top or bottom side bar ansd false for the + * Returns true for the top or bottom side bar and false for the * left and right side bar */ bool isHorizontalSideBarLocation(SideBarLocation Location);