From 821ae66980ace5a0ea419f2753e6b3b10375a8a2 Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Mon, 5 Aug 2024 16:40:50 -0400 Subject: [PATCH] chore: fix typos in code comments --- src/app/main.cpp | 2 +- src/libs/core/application.cpp | 2 +- src/libs/core/settings.h | 4 ++-- src/libs/ui/searchsidebar.cpp | 2 +- src/libs/ui/widgets/searchedit.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 40712819..6fb6a43e 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -189,7 +189,7 @@ int main(int argc, char *argv[]) QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #endif -// Use Fusion style on Windows 10 & 11. This enables proper darl mode support. +// Use Fusion style on Windows 10 & 11. This enables proper dark mode support. // See https://www.qt.io/blog/dark-mode-on-windows-11-with-qt-6.5. // TODO: Make style configurable, detect -style argument. #if defined(Q_OS_WIN) && (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)) diff --git a/src/libs/core/application.cpp b/src/libs/core/application.cpp index 983ed794..820d0ffe 100644 --- a/src/libs/core/application.cpp +++ b/src/libs/core/application.cpp @@ -213,7 +213,7 @@ QNetworkReply *Application::download(const QUrl &url) /*! \internal - Performs a check whether a new Zeal version is available. Setting \a quiet to true supresses + Performs a check whether a new Zeal version is available. Setting \a quiet to true suppresses error and "you are using the latest version" message boxes. */ void Application::checkForUpdates(bool quiet) diff --git a/src/libs/core/settings.h b/src/libs/core/settings.h index 33f5e755..be755d47 100644 --- a/src/libs/core/settings.h +++ b/src/libs/core/settings.h @@ -102,8 +102,8 @@ class Settings final : public QObject // Internal // -------- - // InstallId is a UUID used to indentify a Zeal installation. Created on first start or after - // a settings wipe. It is not attached to user hardware or software, and is sent exclusevely + // InstallId is a UUID used to identify a Zeal installation. Created on first start or after + // a settings wipe. It is not attached to user hardware or software, and is sent exclusively // to *.zealdocs.org hosts. QString installId; diff --git a/src/libs/ui/searchsidebar.cpp b/src/libs/ui/searchsidebar.cpp index 2be74d36..a7d59706 100644 --- a/src/libs/ui/searchsidebar.cpp +++ b/src/libs/ui/searchsidebar.cpp @@ -157,7 +157,7 @@ SearchSidebar::SearchSidebar(const SearchSidebar *other, QWidget *parent) m_treeView->selectionModel()->blockSignals(false); - // Cannot update position until layout geomentry is calculated, so set it in showEvent(). + // Cannot update position until layout geometry is calculated, so set it in showEvent(). m_pendingVerticalPosition = other->m_treeView->verticalScrollBar()->value(); } else { m_searchModel = new Registry::SearchModel(this); diff --git a/src/libs/ui/widgets/searchedit.cpp b/src/libs/ui/widgets/searchedit.cpp index fb9590a4..19134db8 100644 --- a/src/libs/ui/widgets/searchedit.cpp +++ b/src/libs/ui/widgets/searchedit.cpp @@ -48,7 +48,7 @@ SearchEdit::SearchEdit(QWidget *parent) connect(this, &SearchEdit::textChanged, this, &SearchEdit::showCompletions); } -// Makes the line edit use autocompletions. +// Makes the line edit use autocompletion. void SearchEdit::setCompletions(const QStringList &completions) { delete m_prefixCompleter;