codespelling fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -709,7 +709,7 @@ std::shared_ptr<View> 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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user