Fix minor typos

This commit is contained in:
Yuri Chornoivan
2021-01-09 09:19:11 +02:00
parent 2cb38ad1ea
commit a82b9dc14e
7 changed files with 9 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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