From 55caf84b946755166405a2f6922157694d7c0e9b Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Sat, 13 Apr 2024 08:47:48 +0300 Subject: [PATCH] Fix minor typos --- autotests/delegatesizehelpertest.cpp | 2 +- src/chatdocumenthandler.h | 2 +- src/controller.cpp | 2 +- src/linkpreviewer.h | 2 +- src/qml/EditStateDialog.qml | 2 +- src/qml/MessageSourceSheet.qml | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/autotests/delegatesizehelpertest.cpp b/autotests/delegatesizehelpertest.cpp index 9ea52fdd3..77d5cf6ce 100644 --- a/autotests/delegatesizehelpertest.cpp +++ b/autotests/delegatesizehelpertest.cpp @@ -130,7 +130,7 @@ void DelegateSizeHelperTest::equalBreakpoint_data() } /** - * We expect a default return except in the case where the the two percentages are + * We expect a default return except in the case where the two percentages are * equal as that case can be calculated without dividing by zero. */ void DelegateSizeHelperTest::equalBreakpoint() diff --git a/src/chatdocumenthandler.h b/src/chatdocumenthandler.h index 8ff9b3714..34374458c 100644 --- a/src/chatdocumenthandler.h +++ b/src/chatdocumenthandler.h @@ -91,7 +91,7 @@ class ChatDocumentHandler : public QObject Q_PROPERTY(CompletionModel *completionModel READ completionModel CONSTANT) /** - * @brief The current room that the the text document is being handled for. + * @brief The current room that the text document is being handled for. */ Q_PROPERTY(NeoChatRoom *room READ room WRITE setRoom NOTIFY roomChanged) diff --git a/src/controller.cpp b/src/controller.cpp index 618794527..6fa9d83a1 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -157,7 +157,7 @@ void Controller::addConnection(NeoChatConnection *c) }); connect(c, &NeoChatConnection::loggedOut, this, [this, c] { if (accounts().count() > 1) { - // Only set the connection if the the account being logged out is currently active + // Only set the connection if the account being logged out is currently active if (c == activeConnection()) { setActiveConnection(dynamic_cast(accounts().accounts()[0])); } diff --git a/src/linkpreviewer.h b/src/linkpreviewer.h index 27f0e23a2..b275bcdd5 100644 --- a/src/linkpreviewer.h +++ b/src/linkpreviewer.h @@ -53,7 +53,7 @@ class LinkPreviewer : public QObject Q_PROPERTY(QUrl imageSource READ imageSource NOTIFY imageSourceChanged) /** - * @brief Whether the there is a link to preview. + * @brief Whether there is a link to preview. * * A linkPreviwer is empty if the URL is empty. */ diff --git a/src/qml/EditStateDialog.qml b/src/qml/EditStateDialog.qml index 22adee8ae..50e4441f0 100644 --- a/src/qml/EditStateDialog.qml +++ b/src/qml/EditStateDialog.qml @@ -25,7 +25,7 @@ Kirigami.Page { rightPadding: 0 bottomPadding: 0 - title: i18nc("@title As in 'edit the state of this rooms'", "Edit State") + title: i18nc("@title As in 'edit the state of this room'", "Edit State") actions: [ Kirigami.Action { diff --git a/src/qml/MessageSourceSheet.qml b/src/qml/MessageSourceSheet.qml index 0936d700e..237933f42 100644 --- a/src/qml/MessageSourceSheet.qml +++ b/src/qml/MessageSourceSheet.qml @@ -43,7 +43,7 @@ Kirigami.Page { actions: [ Kirigami.Action { - text: i18nc("@action As in 'edit the state of this rooms'", "Edit state") + text: i18nc("@action As in 'edit the state of this room'", "Edit state") icon.name: "document-edit" visible: root.allowEdit enabled: room.canSendState(root.type) && (!root.stateKey.startsWith("@") || root.stateKey === root.room.connection.localUserId) && root.type !== "m.room.create" @@ -53,7 +53,7 @@ Kirigami.Page { stateKey: root.stateKey, sourceText: root.contentJson, }, { - title: i18nc("@title As in 'edit the state of this rooms'", "Edit State") + title: i18nc("@title As in 'edit the state of this room'", "Edit State") }) } ]