Fix minor typos
This commit is contained in:
@@ -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.
|
* equal as that case can be calculated without dividing by zero.
|
||||||
*/
|
*/
|
||||||
void DelegateSizeHelperTest::equalBreakpoint()
|
void DelegateSizeHelperTest::equalBreakpoint()
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class ChatDocumentHandler : public QObject
|
|||||||
Q_PROPERTY(CompletionModel *completionModel READ completionModel CONSTANT)
|
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)
|
Q_PROPERTY(NeoChatRoom *room READ room WRITE setRoom NOTIFY roomChanged)
|
||||||
|
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ void Controller::addConnection(NeoChatConnection *c)
|
|||||||
});
|
});
|
||||||
connect(c, &NeoChatConnection::loggedOut, this, [this, c] {
|
connect(c, &NeoChatConnection::loggedOut, this, [this, c] {
|
||||||
if (accounts().count() > 1) {
|
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()) {
|
if (c == activeConnection()) {
|
||||||
setActiveConnection(dynamic_cast<NeoChatConnection *>(accounts().accounts()[0]));
|
setActiveConnection(dynamic_cast<NeoChatConnection *>(accounts().accounts()[0]));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class LinkPreviewer : public QObject
|
|||||||
Q_PROPERTY(QUrl imageSource READ imageSource NOTIFY imageSourceChanged)
|
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.
|
* A linkPreviwer is empty if the URL is empty.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Kirigami.Page {
|
|||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
bottomPadding: 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: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ Kirigami.Page {
|
|||||||
|
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
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"
|
icon.name: "document-edit"
|
||||||
visible: root.allowEdit
|
visible: root.allowEdit
|
||||||
enabled: room.canSendState(root.type) && (!root.stateKey.startsWith("@") || root.stateKey === root.room.connection.localUserId) && root.type !== "m.room.create"
|
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,
|
stateKey: root.stateKey,
|
||||||
sourceText: root.contentJson,
|
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")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user