diff --git a/src/core/core.cpp b/src/core/core.cpp index 5c7507f85b..86cd347b61 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -575,7 +575,7 @@ void Core::onConferenceTitleChange(Tox* tox, uint32_t conferenceId, uint32_t pee void Core::onReadReceiptCallback(Tox* tox, uint32_t friendId, uint32_t receipt, void* core) { std::ignore = tox; - emit static_cast(core)->receiptRecieved(friendId, ReceiptNum{receipt}); + emit static_cast(core)->receiptReceived(friendId, ReceiptNum{receipt}); } void Core::acceptFriendRequest(const ToxPk& friendPk) diff --git a/src/core/core.h b/src/core/core.h index c4731970f2..a7d6e64bb3 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -177,7 +177,7 @@ public slots: void conferenceJoined(int conferencenumber, ConferenceId conferenceId); void actionSentResult(uint32_t friendId, const QString& action, int success); - void receiptRecieved(int friedId, ReceiptNum receipt); + void receiptReceived(int friedId, ReceiptNum receipt); void failedToRemoveFriend(uint32_t friendId); diff --git a/src/persistence/db/upgrades/dbto11.cpp b/src/persistence/db/upgrades/dbto11.cpp index 597678fc3e..61ddf459d6 100644 --- a/src/persistence/db/upgrades/dbto11.cpp +++ b/src/persistence/db/upgrades/dbto11.cpp @@ -58,7 +58,7 @@ bool DbTo11::appendSplitPeersQueries(RawDatabase& db, QVector CameraDevice::getScreenModes() { diff --git a/src/widget/categorywidget.cpp b/src/widget/categorywidget.cpp index 6278804df7..f2d32fa102 100644 --- a/src/widget/categorywidget.cpp +++ b/src/widget/categorywidget.cpp @@ -76,7 +76,7 @@ void CategoryWidget::setExpanded(bool isExpanded, bool save) expanded = isExpanded; setMouseTracking(true); - // The listWidget will recieve a enterEvent for some reason if now visible. + // The listWidget will receive a enterEvent for some reason if now visible. // Using the following, we prevent that. listWidget->setAttribute(Qt::WA_TransparentForMouseEvents, true); listWidget->setVisible(isExpanded); diff --git a/src/widget/chatformheader.cpp b/src/widget/chatformheader.cpp index b313c8a7c7..f7ed7781b0 100644 --- a/src/widget/chatformheader.cpp +++ b/src/widget/chatformheader.cpp @@ -220,26 +220,26 @@ void ChatFormHeader::removeCallConfirm() void ChatFormHeader::updateCallButtons(bool online, bool audio, bool video) { - const bool audioAvaliable = online && (mode & Mode::Audio); - const bool videoAvaliable = online && (mode & Mode::Video); - if (!audioAvaliable) { + const bool audioAvailable = online && (mode & Mode::Audio); + const bool videoAvailable = online && (mode & Mode::Video); + if (!audioAvailable) { callState = CallButtonState::Disabled; } else if (video) { callState = CallButtonState::Disabled; } else if (audio) { callState = CallButtonState::InCall; } else { - callState = CallButtonState::Avaliable; + callState = CallButtonState::Available; } - if (!videoAvaliable) { + if (!videoAvailable) { videoState = CallButtonState::Disabled; } else if (video) { videoState = CallButtonState::InCall; } else if (audio) { videoState = CallButtonState::Disabled; } else { - videoState = CallButtonState::Avaliable; + videoState = CallButtonState::Available; } updateButtonsView(); diff --git a/src/widget/chatformheader.h b/src/widget/chatformheader.h index c361f3ab6a..c4aafa8965 100644 --- a/src/widget/chatformheader.h +++ b/src/widget/chatformheader.h @@ -27,7 +27,7 @@ class ChatFormHeader : public QWidget enum class CallButtonState { Disabled = 0, // Grey - Avaliable = 1, // Green + Available = 1, // Green InCall = 2, // Red Outgoing = 3, // Yellow Incoming = 4, // Yellow diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index af7cd74df0..168344f657 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -215,7 +215,7 @@ ChatForm::~ChatForm() void ChatForm::setStatusMessage(const QString& newMessage) { statusMessageLabel->setText(newMessage); - // for long messsages + // for long messages statusMessageLabel->setToolTip(Qt::convertFromPlainText(newMessage, Qt::WhiteSpaceNormal)); } diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index eac44635ea..c4373fdf8d 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -725,7 +725,7 @@ void Widget::onCoreChanged(Core& core_) connect(core, &Core::friendStatusMessageChanged, this, &Widget::onFriendStatusMessageChanged); connect(core, &Core::friendRequestReceived, this, &Widget::onFriendRequestReceived); connect(core, &Core::friendMessageReceived, this, &Widget::onFriendMessageReceived); - connect(core, &Core::receiptRecieved, this, &Widget::onReceiptReceived); + connect(core, &Core::receiptReceived, this, &Widget::onReceiptReceived); connect(core, &Core::conferenceInviteReceived, this, &Widget::onConferenceInviteReceived); connect(core, &Core::conferenceMessageReceived, this, &Widget::onConferenceMessageReceived); connect(core, &Core::conferencePeerlistChanged, this, &Widget::onConferencePeerlistChanged);