From fae03328f6844f42b17a00ddc46b3b71dff4e08c Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Wed, 13 Jul 2022 09:12:36 -0400 Subject: [PATCH] codespelling fixes --- .codespellrc | 2 +- src/Platform.h | 2 +- src/ViewGuard.cpp | 2 +- src/Window.h | 6 +++--- src/controllers/DropIndicatorOverlay.cpp | 4 ++-- src/private/multisplitter/Item_p.h | 2 +- src/qtquick/views/TitleBar_qtquick.cpp | 2 +- src/qtquick/views/View_qtquick.cpp | 2 +- src/qtwidgets/Window_qtwidgets.cpp | 4 ++-- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.codespellrc b/.codespellrc index e7540b13..760567eb 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,4 +1,4 @@ [codespell] skip = ./build-*,.git,*.svg,rc_assets.py interactive = 3 -ignore-words-list = overlay,overlayed +ignore-words-list = overlay,overlayed,seh diff --git a/src/Platform.h b/src/Platform.h index 437d17ea..039b927e 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -54,7 +54,7 @@ public: static Platform *instance(); /// @brief Returns whether a popup is open - /// Usually not needed to override. Investigate further in case side bars aren't auto hidding + /// Usually not needed to override. Investigate further in case side bars aren't auto hiding virtual bool hasActivePopup() const; /// @brief Returns the focused view, if any diff --git a/src/ViewGuard.cpp b/src/ViewGuard.cpp index a8c62c34..7436d113 100644 --- a/src/ViewGuard.cpp +++ b/src/ViewGuard.cpp @@ -74,7 +74,7 @@ void ViewGuard::setView(View *view) if (view && view->inDtor()) { // We don't care about views that are already being in DTOR. They count as already deleted for what's ViewGuard concerned. - // This is rare anway, would need to require some reentrancy. + // This is rare anyway, would need to require some reentrancy. view = nullptr; } diff --git a/src/Window.h b/src/Window.h index 3fe6ecc9..87babe31 100644 --- a/src/Window.h +++ b/src/Window.h @@ -77,7 +77,7 @@ public: /// @brief Returns whether a window is active /// An active window has keyboard focus, and might have its window decos /// highlighted. Windows are usually become active after you click on their - /// title bar, but can also be done programatically. + /// title bar, but can also be done programmatically. virtual bool isActive() const = 0; virtual void setProperty(const char *name, const QVariant &value) = 0; @@ -111,14 +111,14 @@ public: /// @brief Returns whether this window is fullscreen currently virtual bool isFullScreen() const = 0; - /// @brief Returns whether this window can't be shrinked to a size that would violate the layout's min size + /// @brief Returns whether this window can't be shrunk to a size that would violate the layout's min size /// This is true for QtWidgets where the layout constraings propagate up to the window /// However, for QtQuick it difficult as there's no QLayout. // - For QtQuick/FloatingWindow we try to not violate the min-size, which we have total control over // - But for QtQuick/MainWindow it's more difficult, as we don't know how the user composed his // main.qml. so this is false if the Window is not a FloatingWindow // - // This method is only used to so we can surpress some warnings regarding layout being clipped due to + // This method is only used to so we can suppress some warnings regarding layout being clipped due to // too small window. virtual bool supportsHonouringLayoutMinSize() const = 0; diff --git a/src/controllers/DropIndicatorOverlay.cpp b/src/controllers/DropIndicatorOverlay.cpp index df303630..2ce88506 100644 --- a/src/controllers/DropIndicatorOverlay.cpp +++ b/src/controllers/DropIndicatorOverlay.cpp @@ -144,8 +144,8 @@ bool DropIndicatorOverlay::dropIndicatorVisible(DropLocation dropLoc) const if (!m_hoveredFrame) return false; } else if (isOutter) { - // If there's only 1 group in the layout, the outter indicators are redundant, as they do the same thing as the internal ones. - // But there might be another window obscuring our target, so it's useful to show the outter indicators in this case + // If there's only 1 group in the layout, the outer indicators are redundant, as they do the same thing as the internal ones. + // But there might be another window obscuring our target, so it's useful to show the outer indicators in this case const bool isTheOnlyFrame = m_hoveredFrame && m_hoveredFrame->isTheOnlyFrame(); if (isTheOnlyFrame && !DockRegistry::self()->isProbablyObscured(m_hoveredFrame->view()->window(), windowBeingDragged)) return false; diff --git a/src/private/multisplitter/Item_p.h b/src/private/multisplitter/Item_p.h index d79937ad..2ca0fdb2 100644 --- a/src/private/multisplitter/Item_p.h +++ b/src/private/multisplitter/Item_p.h @@ -578,7 +578,7 @@ private: Private *const d; }; -/// QtQuick triggers a lot fo resizes due to bindings being updated individually +/// QtQuick triggers a lot of resizes due to bindings being updated individually /// Only check sanity at the end of an operation, and not each time a binding gets evaluated /// Tests will fail with a warning if anything is wrong. struct AtomicSanityChecks diff --git a/src/qtquick/views/TitleBar_qtquick.cpp b/src/qtquick/views/TitleBar_qtquick.cpp index 270a49e1..c60a1da0 100644 --- a/src/qtquick/views/TitleBar_qtquick.cpp +++ b/src/qtquick/views/TitleBar_qtquick.cpp @@ -39,7 +39,7 @@ TitleBar_qtquick::~TitleBar_qtquick() void TitleBar_qtquick::init() { - // QML inteface signals + // QML interface signals connect(m_titleBar, &Controllers::TitleBar::titleChanged, this, &TitleBar_qtquick::titleChanged); connect(m_titleBar, &Controllers::TitleBar::iconChanged, this, &TitleBar_qtquick::iconChanged); connect(m_titleBar, &Controllers::TitleBar::isFocusedChanged, this, &TitleBar_qtquick::isFocusedChanged); diff --git a/src/qtquick/views/View_qtquick.cpp b/src/qtquick/views/View_qtquick.cpp index 2d3d34ec..04cc4169 100644 --- a/src/qtquick/views/View_qtquick.cpp +++ b/src/qtquick/views/View_qtquick.cpp @@ -709,7 +709,7 @@ std::shared_ptr View_qtquick::parentViewFor(const QQuickItem *item) auto p = item->parentItem(); if (QQuickWindow *window = item->window()) { if (p == window->contentItem()) { - // For our purposes, the root view is the one directly bellow QQuickWindow::contentItem + // For our purposes, the root view is the one directly below QQuickWindow::contentItem return nullptr; } } diff --git a/src/qtwidgets/Window_qtwidgets.cpp b/src/qtwidgets/Window_qtwidgets.cpp index 311f2d41..1f279893 100644 --- a/src/qtwidgets/Window_qtwidgets.cpp +++ b/src/qtwidgets/Window_qtwidgets.cpp @@ -61,7 +61,7 @@ Window::Ptr Window_qtwidgets::transientParent() const void Window_qtwidgets::setGeometry(QRect geo) const { if (auto v = rootView()) { - // In QWidget world QWidget interface is prefered over QWindow + // In QWidget world QWidget interface is preferred over QWindow v->setGeometry(geo); } else { // Go via QWindow instead @@ -72,7 +72,7 @@ void Window_qtwidgets::setGeometry(QRect geo) const void Window_qtwidgets::setVisible(bool is) { if (auto v = rootView()) { - // In QWidget world QWidget interface is prefered over QWindow + // In QWidget world QWidget interface is preferred over QWindow v->setVisible(is); } else { // Go via QWindow instead