From 8736c9ec4c1630f92db90db15ddce8c6284d7ef9 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 6 Jul 2022 01:11:11 -0400 Subject: [PATCH] Fix various typos Found via `codespell -q 3 -S *.ts,*.desktop,./src/base/3rdparty,./dist/windows/installer-translations -L ba,doas,ist,ro,ths` PR #17317. --- dist/docker/Readme.md | 4 ++-- src/gui/CMakeLists.txt | 2 +- src/gui/search/searchwidget.cpp | 2 +- src/gui/torrentoptionsdialog.cpp | 2 +- src/gui/transferlistwidget.cpp | 2 +- src/webui/api/synccontroller.cpp | 2 +- src/webui/api/torrentscontroller.cpp | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/docker/Readme.md b/dist/docker/Readme.md index 4d19295dd..ddcd76088 100644 --- a/dist/docker/Readme.md +++ b/dist/docker/Readme.md @@ -2,7 +2,7 @@ This Dockerfile allows you to build a docker image containing qBittorrent-nox -## Prerequisities +## Prerequisites In order to build/run this image you'll need `docker` installed: https://docs.docker.com/get-docker/ @@ -21,7 +21,7 @@ It is also recommended to install `docker-compose` as it can significantly ease ``` * If you are using docker-compose then you should edit `.env` file first. - You can find an explaination of the variables in the following [Parameters](#parameters) section. \ + You can find an explanation of the variables in the following [Parameters](#parameters) section. \ Then run the following commands in this folder: ```shell docker compose build \ diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 8a0a8ab3a..ad1c58122 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -1,5 +1,5 @@ -# CMAKE_AUTO_UI causes unncessary rebuilds +# CMAKE_AUTO_UI causes unnecessary rebuilds qt_wrap_ui(UI_HEADERS aboutdialog.ui addnewtorrentdialog.ui diff --git a/src/gui/search/searchwidget.cpp b/src/gui/search/searchwidget.cpp index 2f6dff766..efc4d2be2 100644 --- a/src/gui/search/searchwidget.cpp +++ b/src/gui/search/searchwidget.cpp @@ -99,7 +99,7 @@ SearchWidget::SearchWidget(MainWindow *mainWindow) + u"
" + tr("foo bar: search for foo and bar", "Search phrase example, illustrates quotes usage, a pair of " - "space delimited words, individal words are highlighted") + "space delimited words, individual words are highlighted") + u"
" + tr(""foo bar": search for foo bar", "Search phrase example, illustrates quotes usage, double quoted" diff --git a/src/gui/torrentoptionsdialog.cpp b/src/gui/torrentoptionsdialog.cpp index f9f7fab33..2aea974f4 100644 --- a/src/gui/torrentoptionsdialog.cpp +++ b/src/gui/torrentoptionsdialog.cpp @@ -590,7 +590,7 @@ void TorrentOptionsDialog::handleRatioTypeChanged() QAbstractButton *currentRadio = m_ui->buttonGroup->checkedButton(); if (currentRadio && (currentRadio == m_previousRadio)) { - // Hack to deselect the currently selected radio button programatically because Qt doesn't allow it in exclusive mode + // Hack to deselect the currently selected radio button programmatically because Qt doesn't allow it in exclusive mode m_ui->buttonGroup->setExclusive(false); currentRadio->setChecked(false); m_ui->buttonGroup->setExclusive(true); diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index 9d17d9a9d..08b85039d 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -804,7 +804,7 @@ void TransferListWidget::exportTorrent() if (hasError) { QMessageBox::warning(this, tr("Export .torrent file error") - , tr("Errors occured when exporting .torrent files. Check execution log for details.")); + , tr("Errors occurred when exporting .torrent files. Check execution log for details.")); } }); diff --git a/src/webui/api/synccontroller.cpp b/src/webui/api/synccontroller.cpp index a97d544b9..03e4817af 100644 --- a/src/webui/api/synccontroller.cpp +++ b/src/webui/api/synccontroller.cpp @@ -500,7 +500,7 @@ void SyncController::maindataAction() { const BitTorrent::CategoryOptions categoryOptions = session->categoryOptions(categoryName); QJsonObject category = categoryOptions.toJSON(); - // adjust it to be compatible with exisitng WebAPI + // adjust it to be compatible with existing WebAPI category[u"savePath"_qs] = category.take(u"save_path"_qs); category.insert(u"name"_qs, categoryName); categories[categoryName] = category.toVariantMap(); diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 875933d0c..05786343b 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -1280,7 +1280,7 @@ void TorrentsController::categoriesAction() { const BitTorrent::CategoryOptions categoryOptions = session->categoryOptions(categoryName); QJsonObject category = categoryOptions.toJSON(); - // adjust it to be compatible with exisitng WebAPI + // adjust it to be compatible with existing WebAPI category[u"savePath"_qs] = category.take(u"save_path"_qs); category.insert(u"name"_qs, categoryName); categories[categoryName] = category;