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++
chore: fix various typos and spelling mistakes in pigment and image libs
Not Cloudy859b81454e2c
diff --git a/libs/image/kis_base_node.h b/libs/image/kis_base_node.hindex 00859868ff..93c0834705 100644--- a/libs/image/kis_base_node.h+++ b/libs/image/kis_base_node.h@@ -338,7 +338,7 @@ public:** If thumbnail generator notices a slowdown it switches the layer's* thumbnail generation into `Coarse` mode, which will force thumbnails- * to be genrated from extent() of the device instead.+ * to be generated from extent() of the device instead.*/KisThumbnailBoundsMode preferredThumbnailBoundsMode() const;diff --git a/libs/image/kis_base_rects_walker.cpp b/libs/image/kis_base_rects_walker.cppindex 0e9f3d80ac..e345ef80e2 100644--- a/libs/image/kis_base_rects_walker.cpp+++ b/libs/image/kis_base_rects_walker.cpp@@ -11,7 +11,7 @@ void KisBaseRectsWalker::addCloneSourceRegenerationJobs(){/*** Copy all suitable clone layers' jobs into a separate- * vector to make sure we don't have hangling iterators+ * vector to make sure we don't have dangling iterators* caused by calling to visitSubtreeTopToBottom() in the* loop*/diff --git a/libs/image/kis_grid_interpolation_tools.h b/libs/image/kis_grid_interpolation_tools.hindex 54e686863c..3f066fc446 100644--- a/libs/image/kis_grid_interpolation_tools.h+++ b/libs/image/kis_grid_interpolation_tools.h@@ -326,7 +326,7 @@ struct PaintDevicePolygonOp/*** IMPORTANT: When setCanMergeRects() is set to `true`,- * the caller should calls finalilze() in the end of+ * the caller should calls finalize() in the end of* the processing action to actually copy all the lazily* postponed rects.*/@@ -500,7 +500,7 @@ struct QImagePolygonOp/*** IMPORTANT: When setCanMergeRects() is set to `true`,- * the caller should calls finalilze() in the end of+ * the caller should calls finalize() in the end of* the processing action to actually copy all the lazily* postponed rects.*/diff --git a/libs/image/kis_layer.h b/libs/image/kis_layer.hindex f1781d91ee..9deb288565 100644--- a/libs/image/kis_layer.h+++ b/libs/image/kis_layer.h@@ -169,7 +169,7 @@ public:* Try create a layer of this type from multiple layers (of the same type).** The implementation will check if all the layers passed as \p layer have- * the same type, verify if they could be merged in a non-rasterizing fasion,+ * the same type, verify if they could be merged in a non-rasterizing fashion,* merge them and return the layer of the proper type.** Currently only used for merging a set of shape layers into a single shape@@ -338,7 +338,7 @@ protected:* For KisLayer classes change rect transformation consists of two* parts: incoming and outgoing.*- * 1) incomingChangeRect(rect) chande rect transformation+ * 1) incomingChangeRect(rect) change rect transformation* performed by the transformations done basing on global* projection. It is performed in KisAsyncMerger +* KisUpdateOriginalVisitor classes. It happens before datadiff --git a/libs/image/kis_outline_generator.h b/libs/image/kis_outline_generator.hindex 05703cf194..8e1611854d 100644--- a/libs/image/kis_outline_generator.h+++ b/libs/image/kis_outline_generator.h@@ -49,7 +49,7 @@ public:/**- * Set the generator to produce simpile outline, skipping outline that are fully enclosed+ * Set the generator to produce simple outline, skipping outline that are fully enclosed* @param simple set simple mode, if true enclosed outline will be skipped**/void setSimpleOutline(bool simple);diff --git a/libs/image/kis_updater_context.h b/libs/image/kis_updater_context.hindex ae0043f8cd..44e357c7c6 100644--- a/libs/image/kis_updater_context.h+++ b/libs/image/kis_updater_context.h@@ -103,7 +103,7 @@ public:** If there is any contestion on the context's mutex, the function* will simply return false, whatever context's state really is.- * Obviosly, if there is a contestion, the object is not "idle" :)+ * Obviously, if there is a contention, the object is not "idle" :)*/bool isIdle() const;diff --git a/libs/image/tests/kis_clone_layer_test.cpp b/libs/image/tests/kis_clone_layer_test.cppindex 439c2e17cf..a0299d9fc1 100644--- a/libs/image/tests/kis_clone_layer_test.cpp+++ b/libs/image/tests/kis_clone_layer_test.cpp@@ -533,7 +533,7 @@ void KisCloneLayerTest::testUpdatesWhileHidden()/*** TODO: We have some issues with updating a layer outside the image bounds* when its clone is hidden. When the clone is made visible again, this hidden- * area is not vidible. To fix this, we need to perform "change-rect-based"-+ * area is not visible. To fix this, we need to perform "change-rect-based"-* update instead of "dirty-rect-based"-update. In the current terms, it means* that we should do refreshGraphAsync() on any visibility change. But our system* is not fully designed to incorporate that. We usually keep the content of thediff --git a/libs/image/tests/kis_walkers_test.cpp b/libs/image/tests/kis_walkers_test.cppindex b23707a4ee..07fb3409b8 100644--- a/libs/image/tests/kis_walkers_test.cpp+++ b/libs/image/tests/kis_walkers_test.cpp@@ -133,7 +133,7 @@ QString nodeTypeString(KisMergeWalker::NodePosition position)else if(position & KisMergeWalker::N_FILTHY_PROJECTION)string+="_PROJE*";else if(position & KisMergeWalker::N_FILTHY_ORIGINAL)- string+="_ORIGI*_WARNINIG!!!: NOT USED";+ string+="_ORIGI*_WARNING!!!: NOT USED";else if(position & KisMergeWalker::N_BELOW_FILTHY)string+="_BELOW ";else if(position & KisMergeWalker::N_EXTRA)diff --git a/libs/pigment/KoColorSpaceRegistry.h b/libs/pigment/KoColorSpaceRegistry.hindex 44a5ec5222..8766dfb8bf 100644--- a/libs/pigment/KoColorSpaceRegistry.h+++ b/libs/pigment/KoColorSpaceRegistry.h@@ -352,7 +352,7 @@ public:* Find a KoColorProfile that matches a given QColorSpace.* This will use the QColorSpace::IccProfile function as a* last resort, preferring to use preexisting profiles in the- * registery.+ * registry.* @param space -- space to return the profile for.* @return A Profile for the given QColorSpace, may be null if nothing was found.*/diff --git a/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.h b/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.hindex d84cf57e6c..62f02735f6 100644--- a/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.h+++ b/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.h@@ -27,7 +27,7 @@ struct KoAdditiveBlendingPolicy};/**- * @brief a plending policy used for subtractive color spaces (e.g. CMYK)+ * @brief a blending policy used for subtractive color spaces (e.g. CMYK)** In CMYK we should first invert the colors to make them "additive",* and then blend.diff --git a/libs/pigment/compositeops/KoCompositeOpDissolve.h b/libs/pigment/compositeops/KoCompositeOpDissolve.hindex 6f064f2e41..361f39b63a 100644--- a/libs/pigment/compositeops/KoCompositeOpDissolve.h+++ b/libs/pigment/compositeops/KoCompositeOpDissolve.h@@ -34,7 +34,7 @@ public:void composite(const KoCompositeOp::ParameterInfo& params) const override {/*** Initialize local per-thread random generator from the global one, it will- * reduce contestion over the global generator in the main compositing loop.+ * reduce contention over the global generator in the main compositing loop.** KisRandomSource is automatically initialized from QRandomGenerator::global()* internally.diff --git a/libs/pigment/compositeops/KoCompositeOpFunctions.h b/libs/pigment/compositeops/KoCompositeOpFunctions.hindex f250d6575c..e086b350e7 100644--- a/libs/pigment/compositeops/KoCompositeOpFunctions.h+++ b/libs/pigment/compositeops/KoCompositeOpFunctions.h@@ -332,7 +332,7 @@ struct CFColorBurn : KoClampedSourceAndDestinationCompositeOpGenericFunctorBase<using namespace Arithmetic;/**- * dst-unit is a stable point of color-burn belndmode,+ * dst-unit is a stable point of color-burn blendmode,* it never changes, whatever the value of src channel*/if (isUnitValueStrict(dst)) {diff --git a/libs/pigment/tests/TestColorConversionSystem.cpp b/libs/pigment/tests/TestColorConversionSystem.cppindex c0cf703395..3b9e8c296f 100644--- a/libs/pigment/tests/TestColorConversionSystem.cpp+++ b/libs/pigment/tests/TestColorConversionSystem.cpp@@ -489,7 +489,7 @@ void TestColorConversionSystem::testCmykBitnessConversion()// qDebug() << ppVar(color2);/**- * For some reason out CMYK color spaces don't support rount-tripping+ * For some reason out CMYK color spaces don't support round-tripping* to-from 16-bit representation. So the code that relies on that should* use KoOptimizedCmykPixelDataScalerU8ToU16Factory::create().*/