Fix minor typos

This commit is contained in:
Yuri Chornoivan
2024-04-13 08:47:48 +03:00
parent 335c012f1b
commit 55caf84b94
6 changed files with 7 additions and 7 deletions

View File

@@ -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()

View File

@@ -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)

View File

@@ -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<NeoChatConnection *>(accounts().accounts()[0]));
}

View File

@@ -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.
*/

View File

@@ -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 {

View File

@@ -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")
})
}
]