Commit 771e9dbe authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor typos

parent 8b9f75ef
......@@ -53,7 +53,7 @@ public:
KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = nullptr) override;
/**
* Reimplemented to instanciate a PluginView for each MainWindow.
* Reimplemented to instantiate a PluginView for each MainWindow.
*/
QObject *createView(KTextEditor::MainWindow *mainWindow) override;
......@@ -85,7 +85,7 @@ public:
const QVector<KateExternalTool *> &tools() const;
/**
* Returns the list of external tools that are shiped by default with
* Returns the list of external tools that are shipped by default with
* the external tools plugin.
*/
QVector<KateExternalTool> defaultTools() const;
......
......@@ -35,7 +35,7 @@ QString toString(KateExternalTool::SaveMode saveMode)
case KateExternalTool::SaveMode::AllDocuments:
return QStringLiteral("AllDocuments");
}
Q_ASSERT(false); // yout forgot a case above
Q_ASSERT(false); // you forgot a case above
return QStringLiteral("None");
}
......@@ -70,7 +70,7 @@ QString toString(KateExternalTool::OutputMode outputMode)
case KateExternalTool::OutputMode::DisplayInPane:
return QStringLiteral("DisplayInPane");
}
Q_ASSERT(false); // yout forgot a case above
Q_ASSERT(false); // you forgot a case above
return QStringLiteral("Ignore");
}
......
......@@ -72,7 +72,7 @@ public:
void run();
/**
* Blocking call that waits until the tool is finised.
* Blocking call that waits until the tool is finished.
* Used internally for unit testing.
*/
void waitForFinished();
......
......@@ -79,7 +79,7 @@ public:
KTextEditor::Document *doc() const;
/**
* the view usess this to close all the documents under the folder
* the view uses this to close all the documents under the folder
* @returns list of all the (nested) documents under this node
*/
QList<KTextEditor::Document *> docTree() const;
......
......@@ -11,7 +11,7 @@
* support to a software tool. The tag lookups provided are sufficiently fast
* enough to permit opening a sorted tag file, searching for a matching tag,
* then closing the tag file each time a tag is looked up (search times are
* on the order of hundreths of a second, even for huge tag files). This is
* on the order of hundredths of a second, even for huge tag files). This is
* the recommended use of this library for most tool applications. Adhering
* to this approach permits a user to regenerate a tag file at will without
* the tool needing to detect and resynchronize with changes to the tag file.
......@@ -207,11 +207,11 @@ extern const char *tagsField(const tagEntry *const entry, const char *const key)
* Only tags whose full lengths match `name' will qualify.
*
* TAG_IGNORECASE
* Matching will be performed in a case-insenstive manner. Note that
* Matching will be performed in a case-insensitive manner. Note that
* this disables binary searches of the tag file.
*
* TAG_OBSERVECASE
* Matching will be performed in a case-senstive manner. Note that
* Matching will be performed in a case-sensitive manner. Note that
* this enables binary searches of the tag file.
*
* The function will return TagSuccess if a tag matching the name is found, or
......
......@@ -1423,7 +1423,7 @@ public:
void onDocumentUrlChanged(KTextEditor::Document *doc)
{
// url already changed by this time and new url not useufl
// url already changed by this time and new url not useful
(void)doc;
// note; url also changes when closed
// spec says;
......
......@@ -670,7 +670,7 @@ class LSPClientServer::LSPClientServerPrivate
QJsonValue m_init;
// server process
QProcess m_sproc;
// server declared capabilites
// server declared capabilities
LSPServerCapabilities m_capabilities;
// server state
State m_state = State::None;
......
......@@ -139,7 +139,7 @@ public:
void didSave(const QUrl &document, const QString &text);
void didClose(const QUrl &document);
// notifcation = signal
// notification = signal
Q_SIGNALS:
void publishDiagnostics(const LSPPublishDiagnosticsParams &);
......
......@@ -11,7 +11,7 @@
* support to a software tool. The tag lookups provided are sufficiently fast
* enough to permit opening a sorted tag file, searching for a matching tag,
* then closing the tag file each time a tag is looked up (search times are
* on the order of hundreths of a second, even for huge tag files). This is
* on the order of hundredths of a second, even for huge tag files). This is
* the recommended use of this library for most tool applications. Adhering
* to this approach permits a user to regenerate a tag file at will without
* the tool needing to detect and resynchronize with changes to the tag file.
......@@ -207,11 +207,11 @@ extern const char *tagsField(const tagEntry *const entry, const char *const key)
* Only tags whose full lengths match `name' will qualify.
*
* TAG_IGNORECASE
* Matching will be performed in a case-insenstive manner. Note that
* Matching will be performed in a case-insensitive manner. Note that
* this disables binary searches of the tag file.
*
* TAG_OBSERVECASE
* Matching will be performed in a case-senstive manner. Note that
* Matching will be performed in a case-sensitive manner. Note that
* this enables binary searches of the tag file.
*
* The function will return TagSuccess if a tag matching the name is found, or
......
......@@ -50,7 +50,7 @@ public:
*/
static void init(KateSnippetGlobal *plugin);
/**
* Retuns the SnippetStore. Call init() to set it up first.
* Returns the SnippetStore. Call init() to set it up first.
*/
static SnippetStore *self();
......
......@@ -935,7 +935,7 @@ void KateViewManager::removeViewSpace(KateViewSpace *viewspace)
currentSplitter->setSizes(sizes);
}
// merge docuemnts of closed view space
// merge documents of closed view space
activeViewSpace()->mergeLruList(lruDocumntsList);
// find the view that is now active.
......
......@@ -43,7 +43,7 @@ public:
/**
* The special ctor for chooser mode
* Set a differend window title, enables some extra widget and try to select
* Set a different window title, enables some extra widget and try to select
* the @p lastSession in the session list.
*/
KateSessionManageDialog(QWidget *parent, const QString &lastSession);
......
......@@ -261,7 +261,7 @@ KateSession::Ptr KateSessionManager::giveSession(const QString &name)
saveSessionTo(s->config());
m_sessions[name] = s;
// Due to this add to m_sessions will updateSessionList() no signal emit,
// but it's importand to add. Otherwise could it be happen that m_activeSession
// but it's important to add. Otherwise could it be happen that m_activeSession
// is not part of m_sessions but a double
emit sessionListChanged();
......
......@@ -146,7 +146,7 @@ public:
/**
* Try to copy the @p session to a new session @p newName.
* Will ask by @c askForNewSessionName() for a differend name when @p newName is already in use or is an
* Will ask by @c askForNewSessionName() for a different name when @p newName is already in use or is an
* empty string.
* @param session the session to copy
* @param newName is wished name of the new session
......@@ -157,7 +157,7 @@ public:
/**
* Try to rename the @p session to @p newName.
* Will ask by @c askForNewSessionName() for a differend name when @p newName is already in use or is an
* Will ask by @c askForNewSessionName() for a different name when @p newName is already in use or is an
* empty string.
* @param session the session to rename
* @param newName is wished new name of the session
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment