From a82b9dc14ed3cdcbef835933d9f97a1cc6a039f2 Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Sat, 9 Jan 2021 09:19:11 +0200 Subject: [PATCH] Fix minor typos --- imports/NeoChat/Component/Timeline/ReactionDelegate.qml | 2 +- src/actionshandler.cpp | 2 +- src/actionshandler.h | 4 ++-- src/chatdocumenthandler.h | 2 +- src/clipboard.cpp | 2 +- src/controller.h | 4 ++-- src/filetypesingleton.h | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/imports/NeoChat/Component/Timeline/ReactionDelegate.qml b/imports/NeoChat/Component/Timeline/ReactionDelegate.qml index 6c9aaf382..9ae50c621 100644 --- a/imports/NeoChat/Component/Timeline/ReactionDelegate.qml +++ b/imports/NeoChat/Component/Timeline/ReactionDelegate.qml @@ -45,7 +45,7 @@ Flow { for (var i = 0; i < modelData.authors.length; i++) { if (i === modelData.authors.length - 1 && i !== 0) { - text += i18nc("Seperate the usernames of users", " and ") + text += i18nc("Separate the usernames of users", " and ") } else if (i !== 0) { text += ", " } diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index 13a824d0c..a7fe9410e 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -138,7 +138,7 @@ void ActionsHandler::joinRoom(const QString &alias) auto joinRoomJob = m_connection->joinRoom(alias, QStringList{knownServer}); Quotient::JoinRoomJob::connect(joinRoomJob, &JoinRoomJob::failure, [=] { - Q_EMIT showMessage(MessageType::Error, i18n("Serveur error when joining the room \"%1\": %2", + Q_EMIT showMessage(MessageType::Error, i18n("Server error when joining the room \"%1\": %2", joinRoomJob->errorString())); }); Quotient::JoinRoomJob::connect(joinRoomJob, &JoinRoomJob::success, [this, joinRoomJob] { diff --git a/src/actionshandler.h b/src/actionshandler.h index 063a0bc2f..caf80f695 100644 --- a/src/actionshandler.h +++ b/src/actionshandler.h @@ -15,7 +15,7 @@ class ActionsHandler : public QObject { Q_OBJECT - /// \brief List of command definition. Usefull for buiding an autcompletion + /// \brief List of command definition. Useful for building an autcompletion /// engine or an help dialog. Q_PROPERTY(QVariantList commands READ commands CONSTANT) @@ -49,7 +49,7 @@ Q_SIGNALS: /// These messages will be displayed in the room view header. void showMessage(MessageType messageType, QString message); - /// \brief Emmited when an action made the user join a room. + /// \brief Emitted when an action made the user join a room. /// /// Either when a new room was created, a direct chat was started /// or a group chat was joined. The UI will react to this signal diff --git a/src/chatdocumenthandler.h b/src/chatdocumenthandler.h index e02aced75..f4e8131bf 100644 --- a/src/chatdocumenthandler.h +++ b/src/chatdocumenthandler.h @@ -53,7 +53,7 @@ public: void setRoom(NeoChatRoom *room); /// This function will look at the current QTextCursor and determine if there - /// is the posibility to autocomplete it. + /// is the possibility to autocomplete it. Q_INVOKABLE QVariantMap getAutocompletionInfo(); Q_INVOKABLE void replaceAutoComplete(const QString &word); diff --git a/src/clipboard.cpp b/src/clipboard.cpp index 92eb03591..9da9b0603 100644 --- a/src/clipboard.cpp +++ b/src/clipboard.cpp @@ -57,7 +57,7 @@ bool Clipboard::saveImage(const QUrl &localPath) const void Clipboard::saveText(QString message) { QRegularExpression re("<[^>]*>"); - auto *mineData = new QMimeData; // ownership is transfered to clipboard + auto *mineData = new QMimeData; // ownership is transferred to clipboard mineData->setHtml(message); mineData->setText(message.replace(re, "")); m_clipboard->setMimeData(mineData); diff --git a/src/controller.h b/src/controller.h index eb965f100..9b0ca0dae 100644 --- a/src/controller.h +++ b/src/controller.h @@ -91,10 +91,10 @@ private Q_SLOTS: Q_SIGNALS: void busyChanged(); - /// Error occured because of user inputs + /// Error occurred because of user inputs void errorOccured(QString error, QString detail); - /// Error occured because of server or bug in NeoChat + /// Error occurred because of server or bug in NeoChat void globalErrorOccured(QString error, QString detail); void syncDone(); void connectionAdded(Quotient::Connection *_t1); diff --git a/src/filetypesingleton.h b/src/filetypesingleton.h index 35c552351..0d98b8f15 100644 --- a/src/filetypesingleton.h +++ b/src/filetypesingleton.h @@ -48,7 +48,7 @@ public: Q_INVOKABLE QString suffixForFileName(const QString &fileName) const; - // These return a list of file extentions, not mimetypes + // These return a list of file extensions, not mimetypes QStringList supportedImageFormats() const; QStringList supportedAnimatedImageFormats() const;