Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

libs: fix typos fixes some source documentation and comment typos.

Kunda Ki38ad38fa74e5
diff --git a/libs/flake/tests/TestSvgText.cpp b/libs/flake/tests/TestSvgText.cpp
index 2b928fcf79..f1dab69b3b 100644
--- a/libs/flake/tests/TestSvgText.cpp
+++ b/libs/flake/tests/TestSvgText.cpp
@@ -490,7 +490,7 @@ void TestSvgText::testComplexText()
bool dummy = false;
QVector<SubChunk> subChunks = KoSvgTextShape::Private::collectSubChunks(child, KoSvgTextProperties::defaultProperties(), false, dummy);
- QCOMPARE(subChunks.size(), 1); // used to be 7, but we got rid of aggresive subchunking.
+ QCOMPARE(subChunks.size(), 1); // used to be 7, but we got rid of aggressive subchunking.
QCOMPARE(subChunks[0].text.size(), 20);
}
child ++;
diff --git a/libs/psdutils/cos/psd_text_data_converter.cpp b/libs/psdutils/cos/psd_text_data_converter.cpp
index 64a226ff7a..6039f7d179 100644
--- a/libs/psdutils/cos/psd_text_data_converter.cpp
+++ b/libs/psdutils/cos/psd_text_data_converter.cpp
@@ -502,12 +502,12 @@ QString PsdTextDataConverter::stylesForPSDStyleSheet(QString &lang, QVariantHash
continue;
} else if (key == "/HindiNumbers") {
// bool. Looks like this automatically selects hindi numbers for arabic. There also
- // seems to be a more complex option to automatically have arabic numbers for hebrew, and an option for farsi numbers, but this might be a different bool alltogether.
+ // seems to be a more complex option to automatically have arabic numbers for hebrew, and an option for farsi numbers, but this might be a different bool altogether.
unsupportedStyles << key;
continue;
} else if (key == "/Kashida") {
// number, s related to drawing/inserting Kashida/Tatweel into Arabic justified text... We don't support this.
- // options are none, short, medium, long, stylistic, indesign apparantly has a 'naskh' option, which is what toggles jalt usage.
+ // options are none, short, medium, long, stylistic, indesign apparently has a 'naskh' option, which is what toggles jalt usage.
unsupportedStyles << key;
continue;
} else if (key == "/DiacriticPos") {
@@ -710,7 +710,7 @@ QString PsdTextDataConverter::stylesForPSDParagraphSheet(QVariantHash PSDParagra
unsupportedStyles << key;
continue;
} else if (key == "/ConsecutiveHyphens") {
- // maximum consequetive lines with hyphenation. 2-25
+ // maximum consecutive lines with hyphenation. 2-25
// CSS-Text-4 hyphenate-limit-lines.
unsupportedStyles << key;
continue;
@@ -1705,7 +1705,7 @@ bool PsdTextDataConverter::convertToPSDTextEngineData(const QString &svgText, QR
textFrames.append(QVariantHash({{"/Resource", newTextFrame}}));
textObjects.append(QVariantHash({{"/Model", model}, {"/View", view}}));
- // default resoure dict
+ // default resource dict
textTotal = text;
diff --git a/libs/ui/KisMultiSurfaceStateManager.h b/libs/ui/KisMultiSurfaceStateManager.h
index b6a610d3e5..d6e3903a1c 100644
--- a/libs/ui/KisMultiSurfaceStateManager.h
+++ b/libs/ui/KisMultiSurfaceStateManager.h
@@ -40,7 +40,7 @@ class KisRootSurfaceInfoProxy;
*
* 1) Legacy HDR mode (the one used on Windows), where the whole main
* window's surface is switched into the HDR space and compositing
- * happens indide Qt
+ * happens inside Qt
*
* 2) Wayland-style HDR mode, where the canvas has its own surface, which
* color space is managed by OS
diff --git a/libs/ui/kis_mimedata.h b/libs/ui/kis_mimedata.h
index 4988d204f5..7698bfe08e 100644
--- a/libs/ui/kis_mimedata.h
+++ b/libs/ui/kis_mimedata.h
@@ -74,7 +74,7 @@ public:
* clipboard or fetched from clipboard (with user selecting
* "display" space)
*
- * On unmanaged compositors they should coinside with the
+ * On unmanaged compositors they should coincide with the
* space of the display. On managed ones they should be set
* to the default color space, e.g. sRGB.
*/
diff --git a/libs/widgetutils/xmlgui/kedittoolbar.cpp b/libs/widgetutils/xmlgui/kedittoolbar.cpp
index f271dc5fe2..c8d6f9407d 100644
--- a/libs/widgetutils/xmlgui/kedittoolbar.cpp
+++ b/libs/widgetutils/xmlgui/kedittoolbar.cpp
@@ -1592,7 +1592,7 @@ void KisKEditToolBarWidgetPrivate::slotChangeIconButton()
}
});
- // Optional: pre-select current icon
+ // Optional: preselect current icon
QString currentIconName = elem.attribute(QStringLiteral("icon"));
for (int i = 0; i < list->count(); ++i) {
if (list->item(i)->data(Qt::UserRole).toString() == currentIconName) {