From b4d1df8592d14adb0476640121edd06db783ed52 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 3 Jul 2021 19:38:27 +0200 Subject: [PATCH] Fix typos found via `codespell --skip .git -w` --- CMakeLists.txt | 2 +- README.md | 10 ++++---- application/main.cpp | 2 +- cli/helper.cpp | 4 ++-- cli/mainfeatures.cpp | 36 ++++++++++++++--------------- dbquery/dbquery.cpp | 4 ++-- dbquery/lyricswikia.cpp | 2 +- gui/attachmentsedit.cpp | 4 ++-- gui/mainwindow.cpp | 2 +- gui/picturepreviewselection.cpp | 2 +- gui/renamefilesdialog.cpp | 8 +++---- gui/tageditorwidget.cpp | 22 +++++++++--------- gui/tagfieldedit.cpp | 4 ++-- renamingutility/tageditorobject.cpp | 2 +- 14 files changed, 52 insertions(+), 52 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30556e1..0d32185 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ set(META_GUI_OPTIONAL true) set(META_JS_SRC_DIR renamingutility) set(META_VERSION_MAJOR 3) set(META_VERSION_MINOR 4) -set(META_VERSION_PATCH 0) +set(META_VERSION_PATCH 1) set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON) # add project files diff --git a/README.md b/README.md index e884c4b..5f7c889 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ tageditor set --index-pos front --force ### Padding Padding allows adding additional tag information without rewriting the entire file or appending the tag. Usage of padding can be configured: -- minimum/maximum padding: The file is rewritten if the padding would fall below/exceed the specifed limits. +- minimum/maximum padding: The file is rewritten if the padding would fall below/exceed the specified limits. - preferred padding: If the file needs to be rewritten the preferred padding is used. Default value for minimum and maximum padding is zero (in the CLI and GUI). This leads to the fact that @@ -225,7 +225,7 @@ Here are some Bash examples which illustrate getting and setting tag information ``` The number after the field name specifies the index of the first file to use the value for. The first index is 0. -* Sets the title specificly for the track with the ID ``3134325680`` and removes +* Sets the title specifically for the track with the ID ``3134325680`` and removes the tags targeting the song/track and the album/movie/episode in general: ``` tageditor set target-level=30 target-tracks=3134325680 title="Title for track 3134325680" \ @@ -311,11 +311,11 @@ Here are some Bash examples which illustrate getting and setting tag information 3. The CLI prints all values in UTF-8 encoding (no matter which encoding is actually used in the tag). ## Build instructions -The application depends on [c++utilities](https://github.com/Martchus/cpp-utilities) and [tagparser](https://github.com/Martchus/tagparser) and is built the same way as these libaries. For basic instructions checkout the README file of [c++utilities](https://github.com/Martchus/cpp-utilities). +The application depends on [c++utilities](https://github.com/Martchus/cpp-utilities) and [tagparser](https://github.com/Martchus/tagparser) and is built the same way as these libraries. For basic instructions checkout the README file of [c++utilities](https://github.com/Martchus/cpp-utilities). When the Qt GUI is enabled, Qt and [qtutilities](https://github.com/Martchus/qtutilities) are required, too. ### Building with Qt GUI -The following Qt modules are requried (version 5.6 or higher): core concurrent gui network widgets declarative/script webenginewidgets/webkitwidgets +The following Qt modules are required (version 5.6 or higher): core concurrent gui network widgets declarative/script webenginewidgets/webkitwidgets Note that old Qt versions like 5.6 lack support for modern JavaScript features. To use the JavaScript-based renaming tool is recommend to use at least Qt 5.12. @@ -343,7 +343,7 @@ When enabled, the following additional dependencies are required (only at build- ### Building this straight 0. Install (preferably the latest version of) g++ or clang, the required Qt modules and CMake. -1. Get the sources of additional dependencies and the tag editor itself. For the lastest version from Git clone the following repositories: +1. Get the sources of additional dependencies and the tag editor itself. For the latest version from Git clone the following repositories: ``` cd $SOURCES git clone https://github.com/Martchus/cpp-utilities.git c++utilities diff --git a/application/main.cpp b/application/main.cpp index 5b4d378..620a170 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -50,7 +50,7 @@ SetTagInfoArgs::SetTagInfoArgs(Argument &filesArg, Argument &verboseArg) , id3InitOnCreateArg("id3-init-on-create", '\0', "indicates whether to initialize newly created ID3 tags (according to specified usage) with the values of the already present ID3 tags") , id3TransferOnRemovalArg("id3-transfer-on-removal", '\0', - "indicates whether values of removed ID3 tags (according to specified usage) should be transfered to remaining ID3 tags (no values will be " + "indicates whether values of removed ID3 tags (according to specified usage) should be transferred to remaining ID3 tags (no values will be " "overwritten)") , encodingArg("encoding", '\0', "specifies the preferred encoding", { "latin1/utf8/utf16le/utf16be" }) , removeTargetArg("remove-target", '\0', "removes all tags with the specified target") diff --git a/cli/helper.cpp b/cli/helper.cpp index b26d7e3..610949d 100644 --- a/cli/helper.cpp +++ b/cli/helper.cpp @@ -75,7 +75,7 @@ bool InterruptHandler::s_handlerRegistered = false; /*! * \brief Registers the specified \a handler for SIGINT and SIGTERM as long as this object is alive. * \remarks The specified \a handler should only call functions which are permitted to be used in signal handlers - * (eg. use POSIX write() instread of std::cout). + * (eg. use POSIX write() instead of std::cout). * \throws Throws std::runtime_error when attempting to create a 2nd instance. */ InterruptHandler::InterruptHandler(std::function handler) @@ -666,7 +666,7 @@ FieldDenotations parseFieldDenotations(const Argument &fieldsArg, bool readOnly) << "note: This is only possible when the \"set\"-operation is used." << endl; exit(-1); } else { - // file index might have been specified explicitely + // file index might have been specified explicitly // if not (mult == 1) use the index of the last value and increase it by one if the value is not an additional one // if there are no previous values, just use the index 0 fieldValues.allValues.emplace_back(type, diff --git a/cli/mainfeatures.cpp b/cli/mainfeatures.cpp index 66c842d..da2b353 100644 --- a/cli/mainfeatures.cpp +++ b/cli/mainfeatures.cpp @@ -130,13 +130,13 @@ void generateFileInfo(const ArgumentOccurrence &, const Argument &inputFileArg, cout << "File information has been saved to \"" << outputFileArg.values().front() << "\"." << endl; } else { const auto errorMessage = file.errorString().toUtf8(); - cerr << Phrases::Error << "An IO error occured when writing the file \"" << outputFileArg.values().front() + cerr << Phrases::Error << "An IO error occurred when writing the file \"" << outputFileArg.values().front() << "\": " << std::string_view(errorMessage.data(), errorMessage.size()) << Phrases::EndFlush; } } catch (const TagParser::Failure &) { - cerr << Phrases::Error << "A parsing failure occured when reading the file \"" << inputFileArg.values().front() << "\"." << Phrases::EndFlush; + cerr << Phrases::Error << "A parsing failure occurred when reading the file \"" << inputFileArg.values().front() << "\"." << Phrases::EndFlush; } catch (const std::ios_base::failure &e) { - cerr << Phrases::Error << "An IO error occured when reading the file \"" << inputFileArg.values().front() << "\": " << e.what() + cerr << Phrases::Error << "An IO error occurred when reading the file \"" << inputFileArg.values().front() << "\": " << e.what() << Phrases::EndFlush; } #else @@ -318,9 +318,9 @@ void displayFileInfo(const ArgumentOccurrence &, const Argument &filesArg, const } } catch (const TagParser::Failure &) { - cerr << Phrases::Error << "A parsing failure occured when reading the file \"" << file << "\"." << Phrases::EndFlush; + cerr << Phrases::Error << "A parsing failure occurred when reading the file \"" << file << "\"." << Phrases::EndFlush; } catch (const std::ios_base::failure &) { - cerr << Phrases::Error << "An IO error occured when reading the file \"" << file << "\"" << Phrases::EndFlush; + cerr << Phrases::Error << "An IO error occurred when reading the file \"" << file << "\"" << Phrases::EndFlush; } printDiagMessages(diag, "Diagnostic messages:", verboseArg.isPresent()); @@ -381,9 +381,9 @@ void displayTagInfo(const Argument &fieldsArg, const Argument &showUnsupportedAr } } } catch (const TagParser::Failure &) { - cerr << Phrases::Error << "A parsing failure occured when reading the file \"" << file << "\"." << Phrases::EndFlush; + cerr << Phrases::Error << "A parsing failure occurred when reading the file \"" << file << "\"." << Phrases::EndFlush; } catch (const std::ios_base::failure &) { - cerr << Phrases::Error << "An IO error occured when reading the file \"" << file << "\"." << Phrases::EndFlush; + cerr << Phrases::Error << "An IO error occurred when reading the file \"" << file << "\"." << Phrases::EndFlush; } printDiagMessages(diag, "Diagnostic messages:", verboseArg.isPresent()); cout << endl; @@ -572,7 +572,7 @@ void setTagInfo(const SetTagInfoArgs &args) Diagnostics diag; AbortableProgressFeedback parsingProgress; // FIXME: actually use the progress object try { - // parse tags and tracks (tracks are relevent because track meta-data such as language can be changed as well) + // parse tags and tracks (tracks are relevant because track meta-data such as language can be changed as well) if (!quiet) { cout << TextAttribute::Bold << "Setting tag information for \"" << file << "\" ..." << Phrases::EndFlush; } @@ -731,7 +731,7 @@ void setTagInfo(const SetTagInfoArgs &args) diag.emplace_back(DiagLevel::Critical, "Unable to parse specified file.", context); } catch (const std::ios_base::failure &e) { diag.emplace_back( - DiagLevel::Critical, argsToString("An IO error occured when parsing the specified file: ", e.what()), context); + DiagLevel::Critical, argsToString("An IO error occurred when parsing the specified file: ", e.what()), context); } } // finally set the values @@ -894,10 +894,10 @@ void setTagInfo(const SetTagInfoArgs &args) } } catch (const TagParser::Failure &) { finalizeLog(); - cerr << " - " << Phrases::Error << "A parsing failure occured when reading/writing the file \"" << file << "\"." << Phrases::EndFlush; + cerr << " - " << Phrases::Error << "A parsing failure occurred when reading/writing the file \"" << file << "\"." << Phrases::EndFlush; } catch (const std::ios_base::failure &e) { finalizeLog(); - cerr << " - " << Phrases::Error << "An IO error occured when reading/writing the file \"" << file << "\": " << e.what() + cerr << " - " << Phrases::Error << "An IO error occurred when reading/writing the file \"" << file << "\": " << e.what() << Phrases::EndFlush; } @@ -924,7 +924,7 @@ void extractField( } if (((fieldDenotations.size() != 1) || (!attachmentInfo.hasId && !attachmentInfo.name)) && ((fieldDenotations.size() == 1) && (attachmentInfo.hasId || attachmentInfo.name))) { - cerr << Phrases::Error << "Excactly one field or attachment needs to be specified." << Phrases::EndFlush; + cerr << Phrases::Error << "Exactly one field or attachment needs to be specified." << Phrases::EndFlush; exit(-1); } if (!inputFilesArg.isPresent() || inputFilesArg.values().empty()) { @@ -989,7 +989,7 @@ void extractField( outputFileStream.flush(); cout << " - Value has been saved to \"" << path << "\"." << endl; } catch (const std::ios_base::failure &e) { - cerr << " - " << Phrases::Error << "An IO error occured when writing the file \"" << path << "\": " << e.what() + cerr << " - " << Phrases::Error << "An IO error occurred when writing the file \"" << path << "\": " << e.what() << Phrases::End; } } @@ -1040,7 +1040,7 @@ void extractField( outputFileStream.flush(); cout << " - Value has been saved to \"" << path << "\"." << endl; } catch (const std::ios_base::failure &e) { - cerr << " - " << Phrases::Error << "An IO error occured when writing the file \"" << path << "\": " << e.what() + cerr << " - " << Phrases::Error << "An IO error occurred when writing the file \"" << path << "\": " << e.what() << Phrases::EndFlush; } } @@ -1052,9 +1052,9 @@ void extractField( } } catch (const TagParser::Failure &) { - cerr << Phrases::Error << "A parsing failure occured when reading the file \"" << file << "\"." << Phrases::End; + cerr << Phrases::Error << "A parsing failure occurred when reading the file \"" << file << "\"." << Phrases::End; } catch (const std::ios_base::failure &e) { - cerr << Phrases::Error << "An IO error occured when reading the file \"" << file << "\": " << e.what() << Phrases::End; + cerr << Phrases::Error << "An IO error occurred when reading the file \"" << file << "\": " << e.what() << Phrases::End; } printDiagMessages(diag, "Diagnostic messages:", verboseArg.isPresent()); } @@ -1088,9 +1088,9 @@ void exportToJson(const ArgumentOccurrence &, const Argument &filesArg, const Ar fileInfo.parseTracks(diag, progress); jsonData.emplace_back(fileInfo, document.GetAllocator()); } catch (const TagParser::Failure &) { - cerr << Phrases::Error << "A parsing failure occured when reading the file \"" << file << "\"." << Phrases::EndFlush; + cerr << Phrases::Error << "A parsing failure occurred when reading the file \"" << file << "\"." << Phrases::EndFlush; } catch (const std::ios_base::failure &e) { - cerr << Phrases::Error << "An IO error occured when reading the file \"" << file << "\": " << e.what() << Phrases::EndFlush; + cerr << Phrases::Error << "An IO error occurred when reading the file \"" << file << "\": " << e.what() << Phrases::EndFlush; } } diff --git a/dbquery/dbquery.cpp b/dbquery/dbquery.cpp index 4011bd9..3cbd7bf 100644 --- a/dbquery/dbquery.cpp +++ b/dbquery/dbquery.cpp @@ -212,7 +212,7 @@ const QByteArray *QueryResultsModel::cover(const QModelIndex &index) const /*! * \brief Fetches the cover the specified \a index. * \returns - * - true if the cover is immidiately available or an error occurs immidiately + * - true if the cover is immediately available or an error occurs immediately * - and false if the cover will be fetched asynchronously. * * If the cover is fetched asynchronously the coverAvailable() signal is emitted, when the cover @@ -243,7 +243,7 @@ const QString *QueryResultsModel::lyrics(const QModelIndex &index) const /*! * \brief Fetches the lyrics the specified \a index. * \returns - * - true if the lyrics are immidiately available or an error occurs immidiately + * - true if the lyrics are immediately available or an error occurs immediately * - and false if the lyrics will be fetched asynchronously. * * If the lyrics are fetched asynchronously the lyricsAvailable() signal is emitted, when the lyrics diff --git a/dbquery/lyricswikia.cpp b/dbquery/lyricswikia.cpp index d17030e..bbc22fd 100644 --- a/dbquery/lyricswikia.cpp +++ b/dbquery/lyricswikia.cpp @@ -286,7 +286,7 @@ void LyricsWikiaResultsModel::parseSongDetails(int row, const QByteArray &data) } } - // requets lyrics (lyrics are trunacted in XML response so just get them via the regular Wiki page) + // requets lyrics (lyrics are truncated in XML response so just get them via the regular Wiki page) // -> fall back to self-crafted URL if it was not possible to parse it from XML if (parsedUrl.isEmpty()) { lazyInitializeLyricsWikiaSongId(assocDesc); diff --git a/gui/attachmentsedit.cpp b/gui/attachmentsedit.cpp index 774ea6f..243e616 100644 --- a/gui/attachmentsedit.cpp +++ b/gui/attachmentsedit.cpp @@ -118,7 +118,7 @@ void AttachmentsEdit::showFileSelection() tr("The file couldn't be added because the attachments of the file could not be parsed successfully.")); } catch (const std::ios_base::failure &failure) { QMessageBox::warning(this, QApplication::applicationName(), - tr("The file couldn't be added because an IO error occured: ") + QString::fromLocal8Bit(failure.what())); + tr("The file couldn't be added because an IO error occurred: ") + QString::fromLocal8Bit(failure.what())); } } } @@ -142,7 +142,7 @@ void AttachmentsEdit::extractSelected() helper.copy(input, file, data->size()); } catch (const std::ios_base::failure &failure) { QMessageBox::warning(this, QApplication::applicationName(), - tr("An IO error occured when extracting the attached file: ") + QString::fromLocal8Bit(failure.what())); + tr("An IO error occurred when extracting the attached file: ") + QString::fromLocal8Bit(failure.what())); } } } else { diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 9cc8b1c..2e67ade 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -445,7 +445,7 @@ void MainWindow::selectNextFile(QItemSelectionModel *selectionModel, const QMode if (m_fileFilterModel->canFetchMore(currentIndex)) { // files and subdirectories have to be fetched // -> QFileSystemModel seems to fetch files and directories async - // -> hence fetchMore will return immediatly + // -> hence fetchMore will return immediately // -> select next file when rowsInserted is emitted auto conn = make_shared(); *conn = connect(m_fileFilterModel, &QAbstractItemModel::rowsInserted, diff --git a/gui/picturepreviewselection.cpp b/gui/picturepreviewselection.cpp index a4a7600..4444ec5 100644 --- a/gui/picturepreviewselection.cpp +++ b/gui/picturepreviewselection.cpp @@ -448,7 +448,7 @@ void PicturePreviewSelection::addOfSelectedType(const QString &path) } catch (const TagParser::Failure &) { QMessageBox::critical(this, QCoreApplication::applicationName(), tr("Unable to parse specified cover file.")); } catch (const std::ios_base::failure &) { - QMessageBox::critical(this, QCoreApplication::applicationName(), tr("An IO error occured when parsing the specified cover file.")); + QMessageBox::critical(this, QCoreApplication::applicationName(), tr("An IO error occurred when parsing the specified cover file.")); } updatePreview(m_currentTypeIndex); } diff --git a/gui/renamefilesdialog.cpp b/gui/renamefilesdialog.cpp index ec9b9e3..8b1fc1d 100644 --- a/gui/renamefilesdialog.cpp +++ b/gui/renamefilesdialog.cpp @@ -176,7 +176,7 @@ void RenameFilesDialog::startGeneratingPreview() m_ui->notificationLabel->setText( tr("The script is not valid.\nError in line %1: %3").arg(m_engine->errorLineNumber()).arg(m_engine->errorMessage())); } else { - m_ui->notificationLabel->setText(tr("An error occured when parsing the script: %1").arg(m_engine->errorMessage())); + m_ui->notificationLabel->setText(tr("An error occurred when parsing the script: %1").arg(m_engine->errorMessage())); } m_ui->notificationLabel->setNotificationType(NotificationType::Warning); } @@ -214,7 +214,7 @@ void RenameFilesDialog::showPreviewProgress(int itemsProcessed, int errorsOccure QString text = tr("%1 files/directories processed", nullptr, itemsProcessed).arg(itemsProcessed); if (m_errorsOccured > 0) { text.append(QChar('\n')); - text.append(tr("%1 error(s) occured", nullptr, errorsOccured).arg(errorsOccured)); + text.append(tr("%1 error(s) occurred", nullptr, errorsOccured).arg(errorsOccured)); } m_ui->notificationLabel->setText(text); } @@ -239,7 +239,7 @@ void RenameFilesDialog::showPreviewResults() m_ui->notificationLabel->setNotificationType(NotificationType::Warning); } if (m_errorsOccured) { - m_ui->notificationLabel->appendLine(tr("%1 error(s) occured.", nullptr, m_errorsOccured).arg(m_errorsOccured)); + m_ui->notificationLabel->appendLine(tr("%1 error(s) occurred.", nullptr, m_errorsOccured).arg(m_errorsOccured)); m_ui->notificationLabel->setNotificationType(NotificationType::Warning); } } @@ -257,7 +257,7 @@ void RenameFilesDialog::showChangsingsResults() m_ui->notificationLabel->setNotificationType(NotificationType::Warning); } if (m_errorsOccured) { - m_ui->notificationLabel->appendLine(tr("%1 error(s) occured.", nullptr, m_errorsOccured).arg(m_errorsOccured)); + m_ui->notificationLabel->appendLine(tr("%1 error(s) occurred.", nullptr, m_errorsOccured).arg(m_errorsOccured)); m_ui->notificationLabel->setNotificationType(NotificationType::Warning); } } diff --git a/gui/tageditorwidget.cpp b/gui/tageditorwidget.cpp index 8c4ebb5..978e0e6 100644 --- a/gui/tageditorwidget.cpp +++ b/gui/tageditorwidget.cpp @@ -371,7 +371,7 @@ void TagEditorWidget::updateTagEditsAndAttachmentEdits(bool updateUi, PreviousVa tagsByTarget[index] << tag; } } - // create a singe editor per target or seperate editors for each tag depending on the settings + // create a single editor per target or separate editors for each tag depending on the settings bool hasAutoCorrectionBeenApplied = false; switch (Settings::values().editor.multipleTagHandling) { case Settings::MultipleTagHandling::SingleEditorPerTarget: @@ -403,7 +403,7 @@ void TagEditorWidget::updateTagEditsAndAttachmentEdits(bool updateUi, PreviousVa addParsingNotificationLine(tr("Some values have been changed by the auto-correction.")); } } else { - // there are no tags -> leave one edit existend but ensure no tags are assigned + // there are no tags -> leave one edit existed but ensure no tags are assigned fetchNextEdit(); edit->setTag(nullptr, false); ++widgetIndex; @@ -787,7 +787,7 @@ void TagEditorWidget::foreachTagEdit(const std::function &funct } /*! - * \brief Returns the active tag edit or nullptr if there is currently no acitve tag edit. + * \brief Returns the active tag edit or nullptr if there is currently no active tag edit. */ TagEdit *TagEditorWidget::activeTagEdit() { @@ -830,7 +830,7 @@ bool TagEditorWidget::startParsing(const QString &path, bool forceRefresh) m_currentDir = fileInfo.absolutePath(); m_fileName = fileInfo.fileName(); } - // write diagnostics to m_diagReparsing if making results are avalable + // write diagnostics to m_diagReparsing if making results are available m_makingResultsAvailable &= sameFile; Diagnostics &diag = m_makingResultsAvailable ? m_diagReparsing : m_diag; // clear diagnostics @@ -858,7 +858,7 @@ bool TagEditorWidget::startParsing(const QString &path, bool forceRefresh) // the file has been opened; parsing notifications will be shown in the info box result = FatalParsingError; } catch (const std::ios_base::failure &e) { - // the file could not be opened because an IO error occured + // the file could not be opened because an IO error occurred m_fileInfo.close(); // ensure file is closed result = IoError; if ((ioError = QString::fromLocal8Bit(e.what())).isEmpty()) { @@ -901,7 +901,7 @@ bool TagEditorWidget::reparseFile() * \brief Shows the current file info (technical info, tags, ...). * This private slot is invoked from the thread which performed the * parsing operation using Qt::QueuedConnection. - * \param result Specifies whether the file could be load sucessfully. + * \param result Specifies whether the file could be load successfully. */ void TagEditorWidget::showFile(char result, const QString &ioError) { @@ -961,7 +961,7 @@ void TagEditorWidget::showFile(char result, const QString &ioError) diagLevel |= m_diagReparsing.level(); } if (diagLevel >= DiagLevel::Critical) { - // we catched no exception, but there are critical diag messages + // we caught no exception, but there are critical diag messages // -> treat those as fatal parsing errors result = LoadingResult::FatalParsingError; } @@ -977,7 +977,7 @@ void TagEditorWidget::showFile(char result, const QString &ioError) bool multipleSegmentsNotTested = m_fileInfo.containerFormat() == ContainerFormat::Matroska && m_fileInfo.container()->segmentCount() > 1; if (diagLevel >= TagParser::DiagLevel::Critical) { m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Critical); - m_ui->parsingNotificationWidget->appendLine(tr("Errors occured.")); + m_ui->parsingNotificationWidget->appendLine(tr("Errors occurred.")); } else if (diagLevel == TagParser::DiagLevel::Warning || m_fileInfo.isReadOnly() || !m_fileInfo.areTagsSupported() || multipleSegmentsNotTested) { m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Warning); if (diagLevel == TagParser::DiagLevel::Warning) { @@ -1212,7 +1212,7 @@ bool TagEditorWidget::startSaving() * This private slot is invoked from the thread which performed the * saving operation using Qt::QueuedConnection. * - * \param sucess Specifies whether the file could be saved sucessfully. + * \param success Specifies whether the file could be saved successfully. */ void TagEditorWidget::showSavingResult(QString ioError, bool processingError, bool canceled) { @@ -1275,11 +1275,11 @@ void TagEditorWidget::showSavingResult(QString ioError, bool processingError, bo } m_nextFileAfterSaving = false; } else { - // fatal errors occured + // fatal errors occurred // -> show status static const QString processingErrorMsg = tr("The tags could not be saved. Checkout the info box for details."); - static const QString ioErrorMsg = tr("The tags could not be saved because an IO error occured: %1"); + static const QString ioErrorMsg = tr("The tags could not be saved because an IO error occurred: %1"); const auto errorMsg = !ioError.isEmpty() ? ioErrorMsg.arg(ioError) : processingErrorMsg; auto msgBox = new QMessageBox(this); msgBox->setIcon(QMessageBox::Critical); diff --git a/gui/tagfieldedit.cpp b/gui/tagfieldedit.cpp index 273e8be..b017d07 100644 --- a/gui/tagfieldedit.cpp +++ b/gui/tagfieldedit.cpp @@ -732,7 +732,7 @@ QAction *TagFieldEdit::setupRestoreAction() m_restoreAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-undo"))); m_restoreAction->setToolTip(tr("Restore value as it is currently present in the file")); connect(m_restoreAction, &QAction::triggered, this, &TagFieldEdit::handleRestoreButtonClicked); - // ownership might be transfered to a child widget/layout + // ownership might be transferred to a child widget/layout connect(m_restoreAction, &QAction::destroyed, this, &TagFieldEdit::handleRestoreButtonDestroyed); return m_restoreAction; } @@ -749,7 +749,7 @@ QAction *TagFieldEdit::setupLockAction() m_lockAction = new QAction(this); setLocked(!m_isLocked); connect(m_lockAction, &QAction::triggered, this, &TagFieldEdit::toggleLocked); - // ownership might be transfered to a child widget/layout + // ownership might be transferred to a child widget/layout connect(m_lockAction, &QAction::destroyed, this, &TagFieldEdit::handleLockButtonDestroyed); return m_lockAction; } diff --git a/renamingutility/tageditorobject.cpp b/renamingutility/tageditorobject.cpp index 71ac978..23753bc 100644 --- a/renamingutility/tageditorobject.cpp +++ b/renamingutility/tageditorobject.cpp @@ -164,7 +164,7 @@ TAGEDITOR_JS_VALUE TagEditorObject::parseFileInfo(const QString &fileName) try { fileInfo.parseEverything(diag, progress); } catch (const Failure &) { - // parsing notifications will be addded anyways + // parsing notifications will be added anyways criticalParseingErrorOccured = true; } catch (const std::ios_base::failure &) { criticalParseingErrorOccured = true;