diff --git a/libs/basicflakes/tools/KoCreatePathTool_p.h b/libs/basicflakes/tools/KoCreatePathTool_p.h --- a/libs/basicflakes/tools/KoCreatePathTool_p.h +++ b/libs/basicflakes/tools/KoCreatePathTool_p.h @@ -83,7 +83,7 @@ reset(); return; } - // check if path is still part of the docment + // check if path is still part of the document if (!canvas->shapeManager()->shapes().contains(path)) { reset(); return; diff --git a/libs/brush/kis_abr_translator.h b/libs/brush/kis_abr_translator.h --- a/libs/brush/kis_abr_translator.h +++ b/libs/brush/kis_abr_translator.h @@ -56,7 +56,7 @@ const QString ABR_NOISE = "Nose"; const QString ABR_AIRBRUSH = "Rpt "; // repeat -// TODO: if string comaprisons would be slow, convert it to enum +// TODO: if string comparisons would be slow, convert it to enum enum enumObjectTypes {BRUSH_PRESET, BRUSH, SIZE_VARIANCE, ANGLE_DYNAMICS, ROUNDNESS_DYNAMICS, DUAL_BRUSH, COUNT_DYNAMICS, SCATTER_DYNAMICS, BRUSH_GROUP}; const QString OBJECT_NAME_BRUSH_PRESET = ""; const QString OBJECT_NAME_BRUSH = "Brsh"; diff --git a/libs/command/kundo2magicstring.h b/libs/command/kundo2magicstring.h --- a/libs/command/kundo2magicstring.h +++ b/libs/command/kundo2magicstring.h @@ -83,7 +83,7 @@ private: /** * Construction of a magic string is allowed only with the means - * of speacial macros which resemble their kde-wide counterparts + * of special macros which resemble their kde-wide counterparts */ explicit KUndo2MagicString(const QString &text); diff --git a/libs/command/kundo2stack.cpp b/libs/command/kundo2stack.cpp --- a/libs/command/kundo2stack.cpp +++ b/libs/command/kundo2stack.cpp @@ -225,7 +225,7 @@ Applies a change to the document. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to - undefined beahavior. + undefined behavior. The default implementation calls redo() on all child commands. @@ -243,7 +243,7 @@ the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to - undefined beahavior. + undefined behavior. The default implementation calls undo() on all child commands in reverse order. @@ -582,7 +582,7 @@ } /*! \internal - If the number of commands on the stack exceedes the undo limit, deletes commands from + If the number of commands on the stack exceeds the undo limit, deletes commands from the bottom of the stack. Returns true if commands were deleted. @@ -742,7 +742,7 @@ * T1 : Time lapsed between current command and previously merged command * -- signal to merge throughout the stack. * - * T2 : Time elapsed between two commands signalling both commands belong + * T2 : Time elapsed between two commands signaling both commands belong * of the same set * * Whenever a KUndo2Command is initialized -- it consists of a start-time diff --git a/libs/flake/KoCanvasController.h b/libs/flake/KoCanvasController.h --- a/libs/flake/KoCanvasController.h +++ b/libs/flake/KoCanvasController.h @@ -48,7 +48,7 @@ * Flake does not provide a canvas, the application will have to * implement a canvas themselves. You canvas can be QWidget-based * or something we haven't invented yet -- as long the class that holds the canvas - * imlements KoCanvasController, tools, scrolling and zooming will work. + * implements KoCanvasController, tools, scrolling and zooming will work. * * A KoCanvasController implementation acts as a decorator around the canvas widget * and provides a way to scroll the canvas, allows the canvas to be centered diff --git a/libs/flake/KoCanvasResourceProvider.h b/libs/flake/KoCanvasResourceProvider.h --- a/libs/flake/KoCanvasResourceProvider.h +++ b/libs/flake/KoCanvasResourceProvider.h @@ -45,7 +45,7 @@ * for the most common ones. All variables are always stored inside a QVariant * instance internally and you can always just use the resource() method to get * that directly. - * The way to store arbitairy data objects that are stored as pointers you can use + * The way to store arbitrary data objects that are stored as pointers you can use * the following code snippets; * @code * QVariant variant; diff --git a/libs/flake/KoConnectionShape.cpp b/libs/flake/KoConnectionShape.cpp --- a/libs/flake/KoConnectionShape.cpp +++ b/libs/flake/KoConnectionShape.cpp @@ -176,7 +176,7 @@ // use cross product to check if rays intersects at all qreal cp = crossProd(d1, d2); if (cp == 0.0) { - // rays are parallel or coincidient + // rays are parallel or coincident if (p1.x() == p2.x() && d1.x() == 0.0 && d1.y() != d2.y()) { // vertical, coincident isect = 0.5 * (p1 + p2); diff --git a/libs/flake/KoDocumentResourceManager.h b/libs/flake/KoDocumentResourceManager.h --- a/libs/flake/KoDocumentResourceManager.h +++ b/libs/flake/KoDocumentResourceManager.h @@ -49,7 +49,7 @@ * for the most common ones. All variables are always stored inside a QVariant * instance internally and you can always just use the resource() method to get * that directly. - * The way to store arbitairy data objects that are stored as pointers you can use + * The way to store arbitrary data objects that are stored as pointers you can use * the following code snippets; * @code * QVariant variant; diff --git a/libs/flake/KoDragOdfSaveHelper.h b/libs/flake/KoDragOdfSaveHelper.h --- a/libs/flake/KoDragOdfSaveHelper.h +++ b/libs/flake/KoDragOdfSaveHelper.h @@ -39,7 +39,7 @@ /** * Create and return the context used for saving * - * If you need a special context for saving you can reimplent this function. + * If you need a special context for saving you can reimplement this function. * The default implementation return a KoShapeSavingContext. * * The returned context is valid as long as the KoDragOdfSaveHelper is existing diff --git a/libs/flake/KoFilterEffect.h b/libs/flake/KoFilterEffect.h --- a/libs/flake/KoFilterEffect.h +++ b/libs/flake/KoFilterEffect.h @@ -156,7 +156,7 @@ /** * Saves common filter attributes * - * Saves result, subregion and input attributes. The input attrinbute + * Saves result, subregion and input attributes. The input attribute * is only saved if required, maximal and actual input count equals 1. * All other filters have to write inputs on their own. */ diff --git a/libs/flake/KoGradientBackground.cpp b/libs/flake/KoGradientBackground.cpp --- a/libs/flake/KoGradientBackground.cpp +++ b/libs/flake/KoGradientBackground.cpp @@ -116,7 +116,7 @@ * * Qt has different notation of QBrush::setTransform() in comparison * to what SVG defines. SVG defines gradientToUser matrix to be postmultiplied - * by QBrush::transform(), but Qt does exectly reverse! + * by QBrush::transform(), but Qt does exactly reverse! * * That most probably has beed caused by the fact that Qt uses transposed * matrices and someone just mistyped the stuff long ago :( diff --git a/libs/flake/KoPathPoint.h b/libs/flake/KoPathPoint.h --- a/libs/flake/KoPathPoint.h +++ b/libs/flake/KoPathPoint.h @@ -253,7 +253,7 @@ /** * Returns if this point is a smooth join of adjacent path segments. * - * The smoothess is defined by the parallelness of the tangents emanating + * The smoothness is defined by the parallelness of the tangents emanating * from the knot point, i.e. the normalized vectors from the knot to the * first and second control point. * The previous and next path points are used to determine the smoothness diff --git a/libs/flake/KoPathSegment.cpp b/libs/flake/KoPathSegment.cpp --- a/libs/flake/KoPathSegment.cpp +++ b/libs/flake/KoPathSegment.cpp @@ -825,7 +825,7 @@ which forms another explicit bezier curve D(t) = (t,d(t)) = sum_i D_i B_{n,i}(t) now values of t for which P(t) lies outside of our fat line L - corrsponds to values of t for which D(t) lies above d = dmax or + corresponds to values of t for which D(t) lies above d = dmax or below d = dmin we can determine parameter ranges of t for which P(t) is guaranteed to lie outside of L by identifying ranges of t which the convex hull diff --git a/libs/flake/KoPathShape.h b/libs/flake/KoPathShape.h --- a/libs/flake/KoPathShape.h +++ b/libs/flake/KoPathShape.h @@ -255,7 +255,7 @@ /** * @brief Returns the segment specified by a path point index * - * A semgent is defined by the point index of the first point in the segment. + * A segment is defined by the point index of the first point in the segment. * A segment contains the defined point and its following point. If the subpath is * closed and the and the pointIndex point to the last point in the subpath, the * following point is the first point in the subpath. @@ -440,7 +440,7 @@ */ virtual QString pathShapeId() const; - /// Returns a odf/svg string represenatation of the path data with the given matrix applied. + /// Returns a odf/svg string representation of the path data with the given matrix applied. QString toString(const QTransform &matrix = QTransform()) const; /// Returns the fill rule for the path object @@ -499,7 +499,7 @@ * @param sweepAngle the length of the angle * TODO add param to have angle of the ellipse * @param offset to the first point in the arc - * @param curvePoints a array which take the cuve points, pass a 'QPointF curvePoins[12]'; + * @param curvePoints a array which take the curve points, pass a 'QPointF curvePoins[12]'; * * @return number of points created by the curve */ diff --git a/libs/flake/KoPathShape.cpp b/libs/flake/KoPathShape.cpp --- a/libs/flake/KoPathShape.cpp +++ b/libs/flake/KoPathShape.cpp @@ -600,7 +600,7 @@ QSizeF KoPathShape::size() const { // don't call boundingRect here as it uses absoluteTransformation - // which itself uses size() -> leads to infinite reccursion + // which itself uses size() -> leads to infinite recursion return outlineRect().size(); } diff --git a/libs/flake/KoPathShape_p.h b/libs/flake/KoPathShape_p.h --- a/libs/flake/KoPathShape_p.h +++ b/libs/flake/KoPathShape_p.h @@ -56,7 +56,7 @@ * z symmetric * * The first point of a path is always of the type c. - * If the path is closed the type of the first point is saved in the last elemeent + * If the path is closed the type of the first point is saved in the last element * E.g. you have a closed path with 2 points in it. The first one (start/end of path) * is symmetric and the second one is smooth that will result in the nodeType="czs" * So if there is a closed sub path the nodeTypes contain one more entry then there diff --git a/libs/flake/KoRTree.h b/libs/flake/KoRTree.h --- a/libs/flake/KoRTree.h +++ b/libs/flake/KoRTree.h @@ -42,7 +42,7 @@ * @brief The KoRTree class is a template class that provides a R-tree. * * This class implements a R-tree as described in - * "R-TREES. A DYNAMIC INDEX STRUCTURE FOR SPATIAL SEARCHING" by Antomn Guttman + * "R-TREES. A DYNAMIC INDEX STRUCTURE FOR SPATIAL SEARCHING" by Antonin Guttman * * It only supports 2 dimensional bounding boxes which are represented by a QRectF. * For node splitting the Quadratic-Cost Algorithm is used as described by Guttman. @@ -454,7 +454,7 @@ //debugFlake << "KoRTree remove"; LeafNode * leaf = m_leafMap[data]; - // Trying to remove unexistent leaf. Most probably, this leaf hasn't been added + // Trying to remove inexistent leaf. Most probably, this leaf hasn't been added // to the shape manager correctly KIS_SAFE_ASSERT_RECOVER_RETURN(leaf); diff --git a/libs/flake/KoShape.h b/libs/flake/KoShape.h --- a/libs/flake/KoShape.h +++ b/libs/flake/KoShape.h @@ -183,7 +183,7 @@ * This can be done with a method like: * painter.fillRect(converter.normalToView(QRectF(QPointF(0.0,0.0), size())), background()); - * Or equavalent for non-square objects. + * Or equivalent for non-square objects. * Do note that a shape's top-left is always at coordinate 0,0. Even if the shape itself is rotated * or translated. * @param painter used for painting the shape @@ -1045,7 +1045,7 @@ * until it is fully done processing. * Warning! This method can be blocking for a long time * @param asynchronous If set to true the processing will can take place in a different thread and the - * function will not block until the shape is finised. + * function will not block until the shape is finished. * In case of printing Flake will call this method from a non-main thread and only * start printing it when the in case of printing method returned. * If set to false the processing needs to be done synchronously and will diff --git a/libs/flake/KoShapeContainerModel.h b/libs/flake/KoShapeContainerModel.h --- a/libs/flake/KoShapeContainerModel.h +++ b/libs/flake/KoShapeContainerModel.h @@ -155,8 +155,8 @@ * to inform the container of such a change. The change has already happened at the * time this method is called. * The base implementation notifies the grand parent of the shape that there was a - * change in a shape. A reimplentation if this function should call this method when - * overwriding the function. + * change in a shape. A reimplementation if this function should call this method when + * overriding the function. * * @param shape the shape that has been changed * @param type this enum shows which change the shape has had. diff --git a/libs/flake/KoShapeController.h b/libs/flake/KoShapeController.h --- a/libs/flake/KoShapeController.h +++ b/libs/flake/KoShapeController.h @@ -136,7 +136,7 @@ QRectF documentRectInPixels() const; /** - * Resolution of the rasterized representaiton of the document. Used to load SVG documents correctly. + * Resolution of the rasterized representation of the document. Used to load SVG documents correctly. */ qreal pixelsPerInch() const; diff --git a/libs/flake/KoShapeControllerBase.h b/libs/flake/KoShapeControllerBase.h --- a/libs/flake/KoShapeControllerBase.h +++ b/libs/flake/KoShapeControllerBase.h @@ -99,7 +99,7 @@ QRectF documentRect() const; /** - * Resolution of the rasterized representaiton of the document. Used to load SVG documents correctly. + * Resolution of the rasterized representation of the document. Used to load SVG documents correctly. */ virtual qreal pixelsPerInch() const = 0; diff --git a/libs/flake/KoToolBase.h b/libs/flake/KoToolBase.h --- a/libs/flake/KoToolBase.h +++ b/libs/flake/KoToolBase.h @@ -185,7 +185,7 @@ * able to support complex input method operations as support for surrounding * text and reconversions. * Default implementation returns simple defaults, for tools that want to provide - * a more responsive text entry experience for CJK languages it would be good to reimplemnt. + * a more responsive text entry experience for CJK languages it would be good to reimplement. * @param query specifies which property is queried. * @param converter the view converter for the current canvas. */ diff --git a/libs/flake/KoToolBase.cpp b/libs/flake/KoToolBase.cpp --- a/libs/flake/KoToolBase.cpp +++ b/libs/flake/KoToolBase.cpp @@ -403,7 +403,7 @@ void KoToolBase::requestUndoDuringStroke() { /** - * Default implementation just cancells the stroke + * Default implementation just cancels the stroke */ requestStrokeCancellation(); } diff --git a/libs/flake/KoToolManager.h b/libs/flake/KoToolManager.h --- a/libs/flake/KoToolManager.h +++ b/libs/flake/KoToolManager.h @@ -119,7 +119,7 @@ per view, because this is a class with scrollbars and a zoomlevel and so on) - for every pointing device (determined by the unique id of tablet, or 0 for mice -- you may have more than one mouse attached, but - Qt cannot distinquish between them, there is an associated tool. + Qt cannot distinguish between them, there is an associated tool. - depending on things like tablet leave/enter proximity, incoming mouse or tablet events and a little timer (that gets stopped when we know what is what), the active pointing device is determined, diff --git a/libs/flake/commands/KoShapeDistributeCommand.h b/libs/flake/commands/KoShapeDistributeCommand.h --- a/libs/flake/commands/KoShapeDistributeCommand.h +++ b/libs/flake/commands/KoShapeDistributeCommand.h @@ -33,7 +33,7 @@ class KRITAFLAKE_EXPORT KoShapeDistributeCommand : public KUndo2Command { public: - /// The different options to ditribute with this command + /// The different options to distribute with this command enum Distribute { HorizontalCenterDistribution, ///< Horizontal centered HorizontalGapsDistribution, ///< Horizontal Gaps diff --git a/libs/flake/commands/KoShapeReorderCommand.h b/libs/flake/commands/KoShapeReorderCommand.h --- a/libs/flake/commands/KoShapeReorderCommand.h +++ b/libs/flake/commands/KoShapeReorderCommand.h @@ -72,7 +72,7 @@ * @param manager the shapeManager that contains all the shapes that could have their indexes changed. * @param move the moving type. * @param parent the parent command for grouping purposes. - * @return command for reording the shapes or 0 if no reordering happened + * @return command for reordering the shapes or 0 if no reordering happened */ static KoShapeReorderCommand *createCommand(const QList &shapes, KoShapeManager *manager, MoveShapeType move, KUndo2Command *parent = 0); @@ -86,7 +86,7 @@ * Note2: the collisions inside \p shapes are ignored. They are just * adjusted to avoid collisions with \p newShape only * @param parent the parent command for grouping purposes. - * @return command for reording the shapes or 0 if no reordering happened + * @return command for reordering the shapes or 0 if no reordering happened */ static KoShapeReorderCommand *mergeInShape(QList shapes, KoShape *newShape, KUndo2Command *parent = 0); diff --git a/libs/flake/tests/TestSvgParser.h b/libs/flake/tests/TestSvgParser.h --- a/libs/flake/tests/TestSvgParser.h +++ b/libs/flake/tests/TestSvgParser.h @@ -158,7 +158,7 @@ void testMarkersDifferent(); - void testGradientRecoveringTrasnform(); + void testGradientRecoveringTransform(); void testMarkersOnClosedPath(); void testMarkersAngularUnits(); diff --git a/libs/flake/tests/TestSvgParser.cpp b/libs/flake/tests/TestSvgParser.cpp --- a/libs/flake/tests/TestSvgParser.cpp +++ b/libs/flake/tests/TestSvgParser.cpp @@ -2964,7 +2964,7 @@ } -void TestSvgParser::testGradientRecoveringTrasnform() +void TestSvgParser::testGradientRecoveringTransform() { // used for experimenting purposes only! @@ -2984,12 +2984,12 @@ gradient.setColorAt(0.0, Qt::red); gradient.setColorAt(1.0, Qt::blue); - QTransform gradientTrasnform; - gradientTrasnform.shear(0.2, 0); + QTransform gradientTransform; + gradientTransform.shear(0.2, 0); { QBrush brush(gradient); - brush.setTransform(gradientTrasnform); + brush.setTransform(gradientTransform); painter.setBrush(brush); } @@ -3017,7 +3017,7 @@ { gradient.setCoordinateMode(QGradient::LogicalMode); QBrush brush(gradient); - brush.setTransform(gradientTrasnform * gradientToUser * smallShapeTransform.inverted()); + brush.setTransform(gradientTransform * gradientToUser * smallShapeTransform.inverted()); painter.setBrush(brush); painter.setPen(Qt::NoPen); } diff --git a/libs/flake/text/KoSvgTextChunkShape.h b/libs/flake/text/KoSvgTextChunkShape.h --- a/libs/flake/text/KoSvgTextChunkShape.h +++ b/libs/flake/text/KoSvgTextChunkShape.h @@ -47,7 +47,7 @@ * * WARNING: beware the difference between "svg-text-chunk" and * KoSvgTextChunkShape! The chunk shape is **not** a "text chunk" in SVG's - * definition. Accrding to SVG, "text chunk" is a set of characters anchored to + * definition. According to SVG, "text chunk" is a set of characters anchored to * a specific absolute position on canvas. And KoSvgTextChunkShape is just one * or element. Obviously, one can contain multiple "text * chunks" and, vice versa, a "text chunk" can spread onto multiple 's. @@ -101,7 +101,7 @@ * or not. That is not a problem for normal shapes, but it cannot work for * text shapes. The text has different inheritance rules: if the parent * text chunk has a gradient fill, its inheriting descendants will - * **smoothly continue** this grandient. They will not start a new gradient + * **smoothly continue** this gradient. They will not start a new gradient * in their local coordinate system. * * Therefore, after loading, the loading code calls diff --git a/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp b/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp --- a/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp +++ b/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp @@ -619,7 +619,7 @@ /** * The alignment rule will be inverted while rendering the text in the text shape - * (accordign to the standard the alignment is defined not by "left" or "right", + * (according to the standard the alignment is defined not by "left" or "right", * but by "start" and "end", which inverts for rtl text) */ Qt::Alignment blockAlignment = block.blockFormat().alignment(); diff --git a/libs/flake/tools/KoShapeRubberSelectStrategy.h b/libs/flake/tools/KoShapeRubberSelectStrategy.h --- a/libs/flake/tools/KoShapeRubberSelectStrategy.h +++ b/libs/flake/tools/KoShapeRubberSelectStrategy.h @@ -45,7 +45,7 @@ * Constructor that initiates the rubber select. * A rubber select is basically rectangle area that the user drags out * from @p clicked to a point later provided in the handleMouseMove() continuously - * showing a semi-transarant 'rubber-mat' over the objects it is about to select. + * showing a semi-transparent 'rubber-mat' over the objects it is about to select. * @param tool the parent tool which controls this strategy * @param clicked the initial point that the user depressed (in pt). * @param useSnapToGrid use the snap-to-grid settings while doing the rubberstamp. diff --git a/libs/image/brushengine/kis_paintop.h b/libs/image/brushengine/kis_paintop.h --- a/libs/image/brushengine/kis_paintop.h +++ b/libs/image/brushengine/kis_paintop.h @@ -78,7 +78,7 @@ * painted along the line using the spacing setting. * * @return the drag distance, that is the remains of the distance - * between p1 and p2 not covered because the currenlty set brush + * between p1 and p2 not covered because the currently set brush * has a spacing greater than that distance. */ virtual void paintLine(const KisPaintInformation &pi1, @@ -90,7 +90,7 @@ * If savedDist is less than zero, the brush is painted at pos1 before being * painted along the curve using the spacing setting. * @return the drag distance, that is the remains of the distance between p1 and p2 not covered - * because the currenlty set brush has a spacing greater than that distance. + * because the currently set brush has a spacing greater than that distance. */ virtual void paintBezierCurve(const KisPaintInformation &pi1, const QPointF &control1, @@ -114,7 +114,7 @@ /** * If the preset supports asynchronous updates, then the stroke execution core will - * call this method with a desured frame rate. The jobs that should be run to prepare the update + * call this method with a desired frame rate. The jobs that should be run to prepare the update * are returned via \p jobs * * @return a pair of diff --git a/libs/image/brushengine/kis_paintop_utils.h b/libs/image/brushengine/kis_paintop_utils.h --- a/libs/image/brushengine/kis_paintop_utils.h +++ b/libs/image/brushengine/kis_paintop_utils.h @@ -118,8 +118,8 @@ * A special class containing the previous position of the cursor for * the sake of painting the outline of the paint op. The main purpose * of this class is to ensure that the saved point does not equal to - * the current one, which would cause a outline flicker. To echieve - * this the class stores two previosly requested points instead of the + * the current one, which would cause a outline flicker. To achieve + * this the class stores two previously requested points instead of the * last one. */ class KRITAIMAGE_EXPORT PositionHistory diff --git a/libs/image/kis_antialiasing_fade_maker.h b/libs/image/kis_antialiasing_fade_maker.h --- a/libs/image/kis_antialiasing_fade_maker.h +++ b/libs/image/kis_antialiasing_fade_maker.h @@ -211,7 +211,7 @@ return (outXMask | outYMask); } - // Apply fader separatedly to avoid calculating vValue twice. + // Apply fader separately to avoid calculating vValue twice. void apply2DFader(Vc::float_v &vValue, Vc::float_m &excludeMask, Vc::float_v &xr, Vc::float_v &yr) const { const Vc::float_v vValMax(255.f); diff --git a/libs/image/kis_brush_mask_applicator_factories.cpp b/libs/image/kis_brush_mask_applicator_factories.cpp --- a/libs/image/kis_brush_mask_applicator_factories.cpp +++ b/libs/image/kis_brush_mask_applicator_factories.cpp @@ -162,11 +162,11 @@ //255 * n * (normeFade - 1) / (normeFade - n) Vc::float_v vFade = n * (vNormFade - vOne) / (vNormFade - n); - // Mask in the inner circe of the mask + // Mask in the inner circle of the mask Vc::float_m mask = vNormFade < vOne; vFade.setZero(mask); - // Mask out the outer circe of the mask + // Mask out the outer circle of the mask vFade(outsideMask) = vOne; vFade.store(bufferPointer, Vc::Aligned); @@ -240,15 +240,15 @@ Vc::float_v fullFade = vAlphafactor * ( VcExtraMath::erf(valDist + vCenter) - VcExtraMath::erf(valDist - vCenter)); Vc::float_m mask; - // Mask in the inner circe of the mask + // Mask in the inner circle of the mask mask = fullFade < vZero; fullFade.setZero(mask); - // Mask the outter circle + // Mask the outer circle mask = fullFade > 254.974f; fullFade(mask) = vValMax; - // Mask (value - value), presicion errors. + // Mask (value - value), precision errors. Vc::float_v vFade = (vValMax - fullFade) / vValMax; // return original dist values before vFade transform @@ -339,7 +339,7 @@ alphaValueF * vCurvedData1); Vc::float_m mask; - // Mask in the inner circe of the mask + // Mask in the inner circle of the mask mask = fullFade < vZero; fullFade.setZero(mask); @@ -452,7 +452,7 @@ vFade(fadeXMask) = fxrNorm; vFade(!fadeXMask && fadeYMask) = fyrNorm; - // Mask out the outer circe of the mask + // Mask out the outer circle of the mask vFade(outsideMask) = vOne; vFade.store(bufferPointer, Vc::Aligned); } else { @@ -520,15 +520,15 @@ Vc::float_m mask; - // Mask in the inner circe of the mask + // Mask in the inner circle of the mask mask = fullFade < vZero; fullFade.setZero(mask); - // Mask the outter circle + // Mask the outer circle mask = fullFade > 254.974f; fullFade(mask) = vValMax; - // Mask (value - value), presicion errors. + // Mask (value - value), precision errors. Vc::float_v vFade = fullFade / vValMax; // return original vValue values before vFade transform @@ -627,15 +627,15 @@ Vc::float_m mask; - // Mask in the inner circe of the mask + // Mask in the inner circle of the mask mask = fullFade < vZero; fullFade.setZero(mask); - // Mask the outter circle + // Mask the outer circle mask = fullFade > 254.974f; fullFade(mask) = vValMax; - // Mask (value - value), presicion errors. + // Mask (value - value), precision errors. Vc::float_v vFade = fullFade / vValMax; // return original vValue values before vFade transform diff --git a/libs/image/kis_edge_detection_kernel.h b/libs/image/kis_edge_detection_kernel.h --- a/libs/image/kis_edge_detection_kernel.h +++ b/libs/image/kis_edge_detection_kernel.h @@ -103,7 +103,7 @@ bool writeToAlpha = false); /** * @brief converToNormalMap - * Convert a channel of the device to a normal map. The channel will be interpretted as a heightmap. + * Convert a channel of the device to a normal map. The channel will be interpreted as a heightmap. * @param device the device * @param rect the rectangle to apply this to. * @param xRadius the xradius diff --git a/libs/image/kis_filter_weights_buffer.h b/libs/image/kis_filter_weights_buffer.h --- a/libs/image/kis_filter_weights_buffer.h +++ b/libs/image/kis_filter_weights_buffer.h @@ -98,7 +98,7 @@ * this class is created before a pass of the transformation basing on * the desired scale factor and the filter strategy used for resampling. * - * Here is an exmple of a calculation of the span for a pixel with + * Here is an example of a calculation of the span for a pixel with * scale equal to 1.0. The result of the blending will be written into * the dst(0) pixel, which is marked with '*' sign. Note that all the * coordinates here are related to the center of the pixel, not to its diff --git a/libs/image/kis_grid_interpolation_tools.h b/libs/image/kis_grid_interpolation_tools.h --- a/libs/image/kis_grid_interpolation_tools.h +++ b/libs/image/kis_grid_interpolation_tools.h @@ -213,7 +213,7 @@ // brain-blowing part: // // since the interpolator does the inverted - // transfomation we read data from "dstPoint" + // transformation we read data from "dstPoint" // (which is non-transformed) and write it into // "srcPoint" (which is transformed position) diff --git a/libs/image/kis_group_layer.h b/libs/image/kis_group_layer.h --- a/libs/image/kis_group_layer.h +++ b/libs/image/kis_group_layer.h @@ -80,7 +80,7 @@ KisPaintDeviceSP paintDevice() const override; /** - Accect the specified visitor. + Accept the specified visitor. @return true if the operation succeeded, false if it failed. */ bool accept(KisNodeVisitor &v) override; diff --git a/libs/image/kis_image.h b/libs/image/kis_image.h --- a/libs/image/kis_image.h +++ b/libs/image/kis_image.h @@ -227,7 +227,7 @@ * * Please note that the actual operation starts asynchronously in * a background, so you cannot expect the image having new size - * right after ths call. + * right after this call. */ void resizeImage(const QRect& newRect); @@ -243,7 +243,7 @@ * * Please note that the actual operation starts asynchronously in * a background, so you cannot expect the image having new size - * right after ths call. + * right after this call. */ void cropImage(const QRect& newRect); @@ -258,7 +258,7 @@ * * Please note that the actual operation starts asynchronously in * a background, so you cannot expect the image having new size - * right after ths call. + * right after this call. */ void cropNode(KisNodeSP node, const QRect& newRect); @@ -271,7 +271,7 @@ * * Please note that the actual operation starts asynchronously in * a background, so you cannot expect the image having new size - * right after ths call. + * right after this call. */ void scaleImage(const QSize &size, qreal xres, qreal yres, KisFilterStrategy *filterStrategy); @@ -283,7 +283,7 @@ * * Please note that the actual operation starts asynchronously in * a background, so you cannot expect the image having new size - * right after ths call. + * right after this call. */ void scaleNode(KisNodeSP node, const QPointF ¢er, qreal scaleX, qreal scaleY, KisFilterStrategy *filterStrategy, KisSelectionSP selection); @@ -587,7 +587,7 @@ vKisAnnotationSP_it endAnnotations(); /** - * Called before the image is delted and sends the sigAboutToBeDeleted signal + * Called before the image is deleted and sends the sigAboutToBeDeleted signal */ void notifyAboutToBeDeleted(); @@ -1054,7 +1054,7 @@ /** * Same as requestStrokeEnd() but is called by view manager when - * the current node is changed. Use to dintinguish + * the current node is changed. Use to distinguish * sigStrokeEndRequested() and * sigStrokeEndRequestedActiveNodeFiltered() which are used by * KisNodeJugglerCompressed diff --git a/libs/image/kis_layer_utils.cpp b/libs/image/kis_layer_utils.cpp --- a/libs/image/kis_layer_utils.cpp +++ b/libs/image/kis_layer_utils.cpp @@ -953,7 +953,7 @@ applicator.applyCommand(new RefreshDelayedUpdateLayers(info), KisStrokeJobData::BARRIER); applicator.applyCommand(new KUndo2Command(), KisStrokeJobData::BARRIER); - // in two-layer mode we disable pass trhough only when the destination layer + // in two-layer mode we disable pass through only when the destination layer // is not a group layer applicator.applyCommand(new DisablePassThroughForHeadsOnly(info, true)); applicator.applyCommand(new KUndo2Command(), KisStrokeJobData::BARRIER); diff --git a/libs/image/kis_lock_free_cache.h b/libs/image/kis_lock_free_cache.h --- a/libs/image/kis_lock_free_cache.h +++ b/libs/image/kis_lock_free_cache.h @@ -117,7 +117,7 @@ virtual ~KisLockFreeCache() {} /** - * Notify the chache that the value has changed + * Notify the cache that the value has changed */ void invalidate() { m_state.invalidate(); diff --git a/libs/image/kis_mask_projection_plane.h b/libs/image/kis_mask_projection_plane.h --- a/libs/image/kis_mask_projection_plane.h +++ b/libs/image/kis_mask_projection_plane.h @@ -28,7 +28,7 @@ * layer object. * * Please note that recalculate() and apply() methods are not defined - * for masks, because the KisLayer code still uses tranditional + * for masks, because the KisLayer code still uses traditional * methods of KisMask directly. */ class KisMaskProjectionPlane : public KisAbstractProjectionPlane diff --git a/libs/image/kis_node.h b/libs/image/kis_node.h --- a/libs/image/kis_node.h +++ b/libs/image/kis_node.h @@ -233,7 +233,7 @@ * Example. You have a layer that needs to prepare some rect on a * projection, say expectedRect. To perform this, the projection * of all the layers below of the size needRect(expectedRect) - * should be calculeated by the merger beforehand and the layer + * should be calculated by the merger beforehand and the layer * will access some other area of image inside the rect * accessRect(expectedRect) during updateProjection call. * diff --git a/libs/image/kis_node_graph_listener.h b/libs/image/kis_node_graph_listener.h --- a/libs/image/kis_node_graph_listener.h +++ b/libs/image/kis_node_graph_listener.h @@ -37,7 +37,7 @@ * and every mode. * * It also manages the sequence number of the graph. This is a number - * which can be used as a checksum for whether the graph has chenged + * which can be used as a checksum for whether the graph has changed * from some period of time or not. \see graphSequenceNumber() */ class KRITAIMAGE_EXPORT KisNodeGraphListener diff --git a/libs/image/kis_node_query_path.h b/libs/image/kis_node_query_path.h --- a/libs/image/kis_node_query_path.h +++ b/libs/image/kis_node_query_path.h @@ -44,7 +44,7 @@ /// /// For instance: "1/*" return all children of the first layer, "../3" return the third layer of the parent /// of the current layer - /// If the string starts with "/" then it's an aboslute path, otherwise it's a relative path. + /// If the string starts with "/" then it's an absolute path, otherwise it's a relative path. QString toString() const; /** * @param path diff --git a/libs/image/kis_paint_device.h b/libs/image/kis_paint_device.h --- a/libs/image/kis_paint_device.h +++ b/libs/image/kis_paint_device.h @@ -317,7 +317,7 @@ public: /** - * Prepares the device for fastBitBlt opreration. It clears + * Prepares the device for fastBitBlt operation. It clears * the device, switches x,y shifts and colorspace if needed. * After this call fastBitBltPossible will return true. * May be used for initialization of temporary devices. diff --git a/libs/image/kis_painter.h b/libs/image/kis_painter.h --- a/libs/image/kis_painter.h +++ b/libs/image/kis_painter.h @@ -451,7 +451,7 @@ * If savedDist is less than zero, the brush is painted at pos1 before being * painted along the line using the spacing setting. * @return the drag distance, that is the remains of the distance between p1 and p2 not covered - * because the currenlty set brush has a spacing greater than that distance. + * because the currently set brush has a spacing greater than that distance. */ void paintLine(const KisPaintInformation &pi1, const KisPaintInformation &pi2, @@ -462,7 +462,7 @@ * If savedDist is less than zero, the brush is painted at pos1 before being * painted along the curve using the spacing setting. * @return the drag distance, that is the remains of the distance between p1 and p2 not covered - * because the currenlty set brush has a spacing greater than that distance. + * because the currently set brush has a spacing greater than that distance. */ void paintBezierCurve(const KisPaintInformation &pi1, const QPointF &control1, diff --git a/libs/image/kis_pixel_selection.cpp b/libs/image/kis_pixel_selection.cpp --- a/libs/image/kis_pixel_selection.cpp +++ b/libs/image/kis_pixel_selection.cpp @@ -400,7 +400,7 @@ QRect selectionExtent = selectedExactRect(); /** - * When the default pixel is not fully transarent, the + * When the default pixel is not fully transparent, the * exactBounds() return extent of the device instead. To make this * value sane we should limit the calculated area by the bounds of * the image. diff --git a/libs/image/kis_random_generator.h b/libs/image/kis_random_generator.h --- a/libs/image/kis_random_generator.h +++ b/libs/image/kis_random_generator.h @@ -30,7 +30,7 @@ * pixel coordinate. * The rational is that filters that use random number (such as noises, or raindrops) * needs to always get the same random value at each run, or else the result will constantly - * changes when used as an adjustement layer. + * changes when used as an adjustment layer. */ class KRITAIMAGE_EXPORT KisRandomGenerator { diff --git a/libs/image/kis_sequential_iterator.h b/libs/image/kis_sequential_iterator.h --- a/libs/image/kis_sequential_iterator.h +++ b/libs/image/kis_sequential_iterator.h @@ -137,7 +137,7 @@ * this first pixel. After the jump is accomplished, you can easily request * the "jumped over" pixel data. * - * The modified rules apply when the user wants accesses censequent pixels + * The modified rules apply when the user wants accesses consequent pixels * in one go. The user first asks the iterator for the number of available * consequent pixels, and then calls nextPixels(numConseqPixels). In this * case, iterator inserts a "virtual" pixel that one should jump over before diff --git a/libs/image/kis_stroke_strategy_undo_command_based.h b/libs/image/kis_stroke_strategy_undo_command_based.h --- a/libs/image/kis_stroke_strategy_undo_command_based.h +++ b/libs/image/kis_stroke_strategy_undo_command_based.h @@ -76,7 +76,7 @@ /** * Set extra data that will be assigned to the command - * represecting this action. Using extra data has the following + * representing this action. Using extra data has the following * restrictions: * * 1) The \p data must be set *before* the stroke has been started. diff --git a/libs/image/kis_transform_worker.h b/libs/image/kis_transform_worker.h --- a/libs/image/kis_transform_worker.h +++ b/libs/image/kis_transform_worker.h @@ -95,7 +95,7 @@ /** * Returns a matrix of the transformation executed by the worker. * Resulting transformation has the following form (in Qt's matrix - * notation (all the matrices are trasposed)): + * notation (all the matrices are transposed)): * * transform = TS.inverted() * S * TS * SC * R * T * diff --git a/libs/image/kis_update_selection_job.cpp b/libs/image/kis_update_selection_job.cpp --- a/libs/image/kis_update_selection_job.cpp +++ b/libs/image/kis_update_selection_job.cpp @@ -30,7 +30,7 @@ * projection. See a comment in KisUpdateSelectionJob::run(). * * Right now, since this job accesses some projections for write, we - * shoudl declare it as exclusive + * should declare it as exclusive */ setExclusive(true); diff --git a/libs/image/lazybrush/KisWatershedWorker.cpp b/libs/image/lazybrush/KisWatershedWorker.cpp --- a/libs/image/lazybrush/KisWatershedWorker.cpp +++ b/libs/image/lazybrush/KisWatershedWorker.cpp @@ -184,7 +184,7 @@ KisScanlineFill fill(stroke, pt, boundingRect); /** * The threshold is set explicitly. If you want to raise it, - * don't forget to add a destiction between 0 and >0 in + * don't forget to add a distinction between 0 and >0 in * the fill strategy. Otherwise the algorithm will not work. */ fill.setThreshold(0); diff --git a/libs/image/tests/kis_clone_layer_test.cpp b/libs/image/tests/kis_clone_layer_test.cpp --- a/libs/image/tests/kis_clone_layer_test.cpp +++ b/libs/image/tests/kis_clone_layer_test.cpp @@ -316,7 +316,7 @@ /** * The newly created clone should now point to the *newly created* - * paint layer, not to the previos one. + * paint layer, not to the previous one. */ QCOMPARE(KisNodeSP(newClone->copyFrom()), copyPaintLayer4); } diff --git a/libs/image/tests/kis_layer_test.cpp b/libs/image/tests/kis_layer_test.cpp --- a/libs/image/tests/kis_layer_test.cpp +++ b/libs/image/tests/kis_layer_test.cpp @@ -272,8 +272,8 @@ /** * KisNode::N_BELOW_FILTHY, KisNode::N_FILTHY_PROJECTION * should not be use by the caller, because the walker - * shoult not visit these node on a forward way. - * So the behavoiur here is undefined. + * should not visit these node on a forward way. + * So the behavior here is undefined. * * resultRect = paintLayer1->changeRect(testRect, KisNode::N_BELOW_FILTHY); * resultRect = paintLayer1->changeRect(testRect, KisNode::N_FILTHY_PROJECTION); diff --git a/libs/libkis/Document.h b/libs/libkis/Document.h --- a/libs/libkis/Document.h +++ b/libs/libkis/Document.h @@ -66,7 +66,7 @@ /** * @brief guidesVisible - * Returns guide visiiblity. + * Returns guide visibility. * @return whether the guides are visible. */ bool guidesVisible() const; diff --git a/libs/libkis/FilterMask.h b/libs/libkis/FilterMask.h --- a/libs/libkis/FilterMask.h +++ b/libs/libkis/FilterMask.h @@ -29,7 +29,7 @@ /** * @brief The FilterMask class - * A filter mask, unlike a filter layer, will add a non-desctructive filter + * A filter mask, unlike a filter layer, will add a non-destructive filter * to the composited image of the node it is attached to. * * You can set grayscale pixeldata on the filter mask to adjust where the filter is applied. diff --git a/libs/libkis/Node.h b/libs/libkis/Node.h --- a/libs/libkis/Node.h +++ b/libs/libkis/Node.h @@ -146,7 +146,7 @@ * be registered with krita and be compatible with the current color model and depth; the image data * is not converted. * @param colorProfile - * @return if assigining the colorprofiel worked + * @return if assigning the color profile worked */ bool setColorProfile(const QString &colorProfile); @@ -453,7 +453,7 @@ bool remove(); /** - * @brief duplicate returns a full copy of the current node. The node is not inserted in the graphc + * @brief duplicate returns a full copy of the current node. The node is not inserted in the graphic * @return a valid Node object or 0 if the node couldn't be duplicated. */ Node* duplicate(); diff --git a/libs/libqml/plugins/draganddrop/DeclarativeDragArea.cpp b/libs/libqml/plugins/draganddrop/DeclarativeDragArea.cpp --- a/libs/libqml/plugins/draganddrop/DeclarativeDragArea.cpp +++ b/libs/libqml/plugins/draganddrop/DeclarativeDragArea.cpp @@ -240,10 +240,10 @@ drag->setPixmap(QPixmap::fromImage(m_delegateImage)); // qDebug() << "++++++delegateImage"; } else { -// qDebug() << "DDD NO Delegte image"; +// qDebug() << "DDD NO Delegate image"; if (m_delegate) { // This is just highly unreliable, let's completely skip this - // until we have a non-digusting way of "attaching an item to + // until we have a non-disgusting way of "attaching an item to // the cursor // QRectF rf; // qDebug() << "DDD +++ delegate" << m_delegate; diff --git a/libs/metadata/kis_meta_data_filter_p.h b/libs/metadata/kis_meta_data_filter_p.h --- a/libs/metadata/kis_meta_data_filter_p.h +++ b/libs/metadata/kis_meta_data_filter_p.h @@ -37,7 +37,7 @@ }; /** * Filter that add the name of the creation program and the date - * of the last modificiation. + * of the last modification. */ class ToolInfoFilter : public Filter { diff --git a/libs/odf/KoOdfGraphicStyles.cpp b/libs/odf/KoOdfGraphicStyles.cpp --- a/libs/odf/KoOdfGraphicStyles.cpp +++ b/libs/odf/KoOdfGraphicStyles.cpp @@ -338,7 +338,7 @@ qreal border = 0.01 * e->attributeNS(KoXmlNS::draw, "border", "0").remove('%').toDouble(); QGradientStops stops; if (type != "axial") { - // In case of radial gradients the colors are reversed, because OOo saves them as the oppsite of the SVG direction + // In case of radial gradients the colors are reversed, because OOo saves them as the opposite of the SVG direction // see bug 137639 QGradientStop start; start.first = (type != "radial") ? border : 1.0 - border; diff --git a/libs/odf/KoOdfReadStore.h b/libs/odf/KoOdfReadStore.h --- a/libs/odf/KoOdfReadStore.h +++ b/libs/odf/KoOdfReadStore.h @@ -79,14 +79,14 @@ * Load and parse * * This function loads and parses the content.xml, styles.xml and the settings.xml - * file in the store. The sytles are already parsed. + * file in the store. The styles are already parsed. * * After this function is called you can access the data via * styles() * contentDoc() * settingsDoc() * - * @param errorMessage The errorMessage is set in case an error is encounted. + * @param errorMessage The errorMessage is set in case an error is encountered. * @return true if loading and parsing was successful, false otherwise. In case of an error * the errorMessage is updated accordingly. */ diff --git a/libs/odf/KoStyleStack.h b/libs/odf/KoStyleStack.h --- a/libs/odf/KoStyleStack.h +++ b/libs/odf/KoStyleStack.h @@ -163,7 +163,7 @@ /** * Overloaded method to also set backup properties to search in * - * If the list is graphic, paragraph it will search first in graphic-properties and then in paragraph-properites + * If the list is graphic, paragraph it will search first in graphic-properties and then in paragraph-properties */ void setTypeProperties(const QList &typeProperties); diff --git a/libs/odf/KoUnit.h b/libs/odf/KoUnit.h --- a/libs/odf/KoUnit.h +++ b/libs/odf/KoUnit.h @@ -245,10 +245,10 @@ /** * Get an approximate scale of a unit vector that was converted by - * the transfomation. + * the transformation. * * Please note that exact values are guaranteed only for - * combinations of Translate, Rotation and Unifor Scale + * combinations of Translate, Rotation and Uniform Scale * matrices. For combinations having shears and perspective the * value will be average for the point near CS origin. */ diff --git a/libs/pigment/KoBasicHistogramProducers.cpp b/libs/pigment/KoBasicHistogramProducers.cpp --- a/libs/pigment/KoBasicHistogramProducers.cpp +++ b/libs/pigment/KoBasicHistogramProducers.cpp @@ -233,7 +233,7 @@ qreal KoBasicF32HistogramProducer::maximalZoom() const { - // XXX What _is_ the maximal zoom here? I don't think there is one with floats, so this seems a fine compromis for the moment + // XXX What _is_ the maximal zoom here? I don't think there is one with floats, so this seems a fine compromise for the moment return 1.0 / 255.0; } @@ -308,7 +308,7 @@ qreal KoBasicF16HalfHistogramProducer::maximalZoom() const { - // XXX What _is_ the maximal zoom here? I don't think there is one with floats, so this seems a fine compromis for the moment + // XXX What _is_ the maximal zoom here? I don't think there is one with floats, so this seems a fine compromise for the moment return 1.0 / 255.0; } diff --git a/libs/pigment/KoColorConversionSystem_p.h b/libs/pigment/KoColorConversionSystem_p.h --- a/libs/pigment/KoColorConversionSystem_p.h +++ b/libs/pigment/KoColorConversionSystem_p.h @@ -301,7 +301,7 @@ , ignoreColorCorrectness(_ignoreColorCorrectness) {} - /// @return true if the path maximize all the criterions (except length) + /// @return true if the path maximize all the criteria (except length) inline bool isGoodPath(const KoColorConversionSystem::Path & path) const { return (path.respectColorCorrectness || ignoreColorCorrectness) && diff --git a/libs/pigment/KoColorConversionTransformationFactory.h b/libs/pigment/KoColorConversionTransformationFactory.h --- a/libs/pigment/KoColorConversionTransformationFactory.h +++ b/libs/pigment/KoColorConversionTransformationFactory.h @@ -34,7 +34,7 @@ public: /** * Create a color conversion transformation factory, that can create - * KoColorConversionTrasnformation object between a source colorspace + * KoColorConversionTransformation object between a source colorspace * and a destination colorspace. * * @param _srcModelId id for the source color model diff --git a/libs/pigment/KoColorConversions.h b/libs/pigment/KoColorConversions.h --- a/libs/pigment/KoColorConversions.h +++ b/libs/pigment/KoColorConversions.h @@ -47,14 +47,14 @@ KRITAPIGMENT_EXPORT void hls_to_rgb(int h, int l, int s, quint8 * r, quint8 * g, quint8 * b); //HSI and HSY' functions. -//These are modified to calculate a cylliner, this is good for colour selectors sliders. +//These are modified to calculate a cylinder, this is good for colour selectors sliders. //All eight expect 0.0-1.0 for all parameters. //HSI measures the Tone, Intensity, by adding the r, g and b components and then normalising that. KRITAPIGMENT_EXPORT void HSIToRGB(const qreal h, const qreal s, const qreal i, qreal *red, qreal *green, qreal *blue); KRITAPIGMENT_EXPORT void RGBToHSI(qreal r, qreal g, qreal b, qreal *h, qreal *s, qreal *i); //HSY' measures the tone, Luma, by weighting the r, g, and b components before adding them up. -//The R, G, B reffers to the weights, and defaults to the 601 rec for luma. +//The R, G, B refers to the weights, and defaults to the 601 rec for luma. KRITAPIGMENT_EXPORT void RGBToHSY( qreal r, qreal g, qreal b, qreal *h, qreal *s, qreal *y, qreal R=0.299, qreal G=0.587, qreal B=0.114); KRITAPIGMENT_EXPORT void HSYToRGB(const qreal h, const qreal s, const qreal y, qreal *red, qreal *green, qreal *blue, qreal R=0.299, qreal G=0.587, qreal B=0.114); diff --git a/libs/pigment/KoColorSpaceRegistry.h b/libs/pigment/KoColorSpaceRegistry.h --- a/libs/pigment/KoColorSpaceRegistry.h +++ b/libs/pigment/KoColorSpaceRegistry.h @@ -219,15 +219,15 @@ QString colorSpaceId(const KoID& colorModelId, const KoID& colorDepthId) const; /** - * @return a the identifiant of the color model for the given color space id. + * @return the identifier of the color model for the given color space id. * * This function is a compatibility function used to get the color space from * all kra files. */ KoID colorSpaceColorModelId(const QString & _colorSpaceId) const; /** - * @return a the identifiant of the color depth for the given color space id. + * @return the identifier of the color depth for the given color space id. * * This function is a compatibility function used to get the color space from * all kra files. @@ -343,8 +343,8 @@ * @return the color conversion system use by the registry and the color * spaces to create color conversion transformation. * - * WARNING: conversion system is guared by the registry locks, don't - * use it anywhere other than unttests! + * WARNING: conversion system is guarded by the registry locks, don't + * use it anywhere other than unittests! */ const KoColorConversionSystem* colorConversionSystem() const; diff --git a/libs/pigment/KoColorTransformation.h b/libs/pigment/KoColorTransformation.h --- a/libs/pigment/KoColorTransformation.h +++ b/libs/pigment/KoColorTransformation.h @@ -60,7 +60,7 @@ virtual void transform(const quint8 *src, quint8 *dst, qint32 nPixels) const = 0; /** - * @return the list of parmeters + * @return the list of parameters */ virtual QList parameters() const; /** diff --git a/libs/pigment/KoCompositeColorTransformation.h b/libs/pigment/KoCompositeColorTransformation.h --- a/libs/pigment/KoCompositeColorTransformation.h +++ b/libs/pigment/KoCompositeColorTransformation.h @@ -26,8 +26,8 @@ /** * A class for storing a composite color transformation. All the - * trasnformations added with appendTransform() are applied - * sequentually to the process pixels. + * transformations added with appendTransform() are applied + * sequentially to the process pixels. * * \p mode defines how the buffers are used while processing. * diff --git a/libs/pigment/KoConvolutionOp.h b/libs/pigment/KoConvolutionOp.h --- a/libs/pigment/KoConvolutionOp.h +++ b/libs/pigment/KoConvolutionOp.h @@ -36,7 +36,7 @@ * Convolve the colors. * * @param colors a pointer toward the source pixels - * @param kernelValues the coeffient of the source pixels + * @param kernelValues the coefficient of the source pixels * @param dst the destination pixel * @param factor usually the factor is equal to the sum of kernelValues * @param offset the offset which is added to the result, useful diff --git a/libs/pigment/KoHistogramProducer.h b/libs/pigment/KoHistogramProducer.h --- a/libs/pigment/KoHistogramProducer.h +++ b/libs/pigment/KoHistogramProducer.h @@ -132,7 +132,7 @@ KoHistogramProducerFactoryRegistry(); ~KoHistogramProducerFactoryRegistry() override; static KoHistogramProducerFactoryRegistry* instance(); - /// returns a list, sorted by preferrence: higher preferance comes first + /// returns a list, sorted by preference: higher preference comes first QList keysCompatibleWith(const KoColorSpace* colorSpace, bool isStrict=false) const; private: diff --git a/libs/pigment/KoMixColorsOp.h b/libs/pigment/KoMixColorsOp.h --- a/libs/pigment/KoMixColorsOp.h +++ b/libs/pigment/KoMixColorsOp.h @@ -34,7 +34,7 @@ /** * Mix the colors. * @param colors a pointer toward the source pixels - * @param weights the coeffient of the source pixels (if you want + * @param weights the coefficient of the source pixels (if you want * to average the sum of weights must be equal to 255) * @param nColors the number of pixels in the colors array * @param dst the destination pixel diff --git a/libs/pigment/compositeops/KoStreamedMath.h b/libs/pigment/compositeops/KoStreamedMath.h --- a/libs/pigment/compositeops/KoStreamedMath.h +++ b/libs/pigment/compositeops/KoStreamedMath.h @@ -122,7 +122,7 @@ /** * Get an alpha values from Vc::float_v::size() pixels 32-bit each * (4 channels, 8 bit per channel). The alpha value is considered - * to be stored in the most significat byte of the pixel + * to be stored in the most significant byte of the pixel * * \p aligned controls whether the \p data is fetched using aligned * instruction or not. diff --git a/libs/psd/asl/kis_asl_xml_parser.cpp b/libs/psd/asl/kis_asl_xml_parser.cpp --- a/libs/psd/asl/kis_asl_xml_parser.cpp +++ b/libs/psd/asl/kis_asl_xml_parser.cpp @@ -147,7 +147,7 @@ QString typeId = childEl.attribute("typeId", ""); if (typeId != "Clry") { - warnKrita << "WARNING: Invalid typeId of a greadient stop type" << typeId; + warnKrita << "WARNING: Invalid typeId of a gradient stop type" << typeId; } QString value = childEl.attribute("value", ""); @@ -198,7 +198,7 @@ } else if (type == "UnitFloat" && key == "Opct") { QString unit = childEl.attribute("unit", ""); if (unit != "#Prc") { - warnKrita << "WARNING: Invalid unit of a greadient stop transparency" << unit; + warnKrita << "WARNING: Invalid unit of a gradient stop transparency" << unit; } qreal value = KisDomUtils::toDouble(childEl.attribute("value", "100")); diff --git a/libs/ui/KisAsyncAnimationRendererBase.h b/libs/ui/KisAsyncAnimationRendererBase.h --- a/libs/ui/KisAsyncAnimationRendererBase.h +++ b/libs/ui/KisAsyncAnimationRendererBase.h @@ -25,7 +25,7 @@ #include "kritaui_export.h" /** - * KisAsyncAnimationRendererBase is a special class represinting a + * KisAsyncAnimationRendererBase is a special class representing a * single worker thread inside KisAsyncAnimationRenderDialogBase. It connects * the specified image using correct Qt::DirectConnection connections and * reacts on them. On sigFrameReady() signal it calls frameCompletedCallback(), @@ -131,7 +131,7 @@ * startFrameRegeneration(). Should be used by the derived classes only. * * Please note that requestedImage() will become null as soon as the user - * cancels the processing. That happends in the GUI thread so + * cancels the processing. That happens in the GUI thread so * frameCompletedCallback() should be extremely careful when requesting the * value (check the shared pointer after fetching). */ diff --git a/libs/ui/KisDocument.cpp b/libs/ui/KisDocument.cpp --- a/libs/ui/KisDocument.cpp +++ b/libs/ui/KisDocument.cpp @@ -636,7 +636,7 @@ if (!d->modifiedWhileSaving) { /** - * If undo stack is alreado clean/empty, it doesn't emit any + * If undo stack is already clean/empty, it doesn't emit any * signals, so we might forget update document modified state * (which was set, e.g. while recovering an autosave file) */ diff --git a/libs/ui/KisImageBarrierLockerWithFeedback.cpp b/libs/ui/KisImageBarrierLockerWithFeedback.cpp --- a/libs/ui/KisImageBarrierLockerWithFeedback.cpp +++ b/libs/ui/KisImageBarrierLockerWithFeedback.cpp @@ -29,7 +29,7 @@ { if (!image) return; - // TODO1: find the window corrsponding to the awaited image! + // TODO1: find the window corresponding to the awaited image! // TODO2: move blocking code from KisViewManager here KisMainWindow *window = KisPart::instance()->currentMainwindow(); if (!window) return; diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cpp --- a/libs/ui/KisMainWindow.cpp +++ b/libs/ui/KisMainWindow.cpp @@ -2623,7 +2623,7 @@ const int deskWidth = desk.width(); if (deskWidth > 1024) { // a nice width, and slightly less than total available - // height to componensate for the window decs + // height to compensate for the window decs w = (deskWidth / 3) * 2; h = (desk.height() / 3) * 2; } diff --git a/libs/ui/KisNodeView.h b/libs/ui/KisNodeView.h --- a/libs/ui/KisNodeView.h +++ b/libs/ui/KisNodeView.h @@ -102,7 +102,7 @@ * specified menu. * * For instance, if a document section can be locked and visible, - * the menu will be expanded with locked and visilbe toggle + * the menu will be expanded with locked and visible toggle * actions. * * For instance diff --git a/libs/ui/KisSaveGroupVisitor.h b/libs/ui/KisSaveGroupVisitor.h --- a/libs/ui/KisSaveGroupVisitor.h +++ b/libs/ui/KisSaveGroupVisitor.h @@ -43,7 +43,7 @@ * Create a KisSaveGroupVisitor * * @param image: the image to save - * @param saveInvisible: also save invisibible layers + * @param saveInvisible: also save invisible layers * @param saveTopLevelOnly: if true, only save the toplevel layers, otherwise * descend into groups and save the bottom-most groups (groups that do * not contain another group. diff --git a/libs/ui/KisWelcomePageWidget.h b/libs/ui/KisWelcomePageWidget.h --- a/libs/ui/KisWelcomePageWidget.h +++ b/libs/ui/KisWelcomePageWidget.h @@ -28,7 +28,7 @@ #include "ui_KisWelcomePage.h" #include -/// A widget for diplaying if no documents are open. This will display in the MDI area +/// A widget for displaying if no documents are open. This will display in the MDI area class KRITAUI_EXPORT KisWelcomePageWidget : public QWidget, public Ui::KisWelcomePage { Q_OBJECT diff --git a/libs/ui/canvas/kis_abstract_canvas_widget.h b/libs/ui/canvas/kis_abstract_canvas_widget.h --- a/libs/ui/canvas/kis_abstract_canvas_widget.h +++ b/libs/ui/canvas/kis_abstract_canvas_widget.h @@ -82,7 +82,7 @@ virtual QVector updateCanvasProjection(const QVector &infoObjects) = 0; /** - * Returns true if the asynchromous engine of the canvas + * Returns true if the asynchronous engine of the canvas * (e.g. openGL pipeline) is busy with processing of the previous * update events. This will make KisCanvas2 to postpone and * compress update events. diff --git a/libs/ui/canvas/kis_canvas2.h b/libs/ui/canvas/kis_canvas2.h --- a/libs/ui/canvas/kis_canvas2.h +++ b/libs/ui/canvas/kis_canvas2.h @@ -222,7 +222,7 @@ QRect regionOfInterest() const; /** - * Set aftificial limit outside which the image will not be rendered + * Set artificial limit outside which the image will not be rendered * \p rc is measured in image pixels */ void setRenderingLimit(const QRect &rc); diff --git a/libs/ui/canvas/kis_guides_manager.cpp b/libs/ui/canvas/kis_guides_manager.cpp --- a/libs/ui/canvas/kis_guides_manager.cpp +++ b/libs/ui/canvas/kis_guides_manager.cpp @@ -547,7 +547,7 @@ /** * When we delete a guide, it might happen that we are - * delting the last guide. Therefore we should eat the + * deleting the last guide. Therefore we should eat the * corresponding event so that the event filter would stop * the filter processing. */ diff --git a/libs/ui/canvas/kis_image_patch.h b/libs/ui/canvas/kis_image_patch.h --- a/libs/ui/canvas/kis_image_patch.h +++ b/libs/ui/canvas/kis_image_patch.h @@ -69,7 +69,7 @@ /** * Draws an m_interestRect of the patch onto @gc * By the way it fits this rect into @dstRect - * @renderHints are directly tranmitted to QPainter + * @renderHints are directly transmitted to QPainter */ void drawMe(QPainter &gc, const QRectF &dstRect, diff --git a/libs/ui/canvas/kis_image_pyramid.h b/libs/ui/canvas/kis_image_pyramid.h --- a/libs/ui/canvas/kis_image_pyramid.h +++ b/libs/ui/canvas/kis_image_pyramid.h @@ -64,7 +64,7 @@ /** * Draw the projection onto a QPainter. - * Color profiling accurs here + * Color profiling occurs here */ void drawImage(qreal scale, QPainter& gc, diff --git a/libs/ui/canvas/kis_projection_backend.h b/libs/ui/canvas/kis_projection_backend.h --- a/libs/ui/canvas/kis_projection_backend.h +++ b/libs/ui/canvas/kis_projection_backend.h @@ -50,7 +50,7 @@ /** * Updates the cache of the backend by reading from - * an accociated image. All data transfers with + * an associated image. All data transfers with * KisImage should happen here */ virtual void updateCache(const QRect &dirtyImageRect) = 0; @@ -78,7 +78,7 @@ * scale or even original scale (e.g. KisProjectionCache) * * If info.borderWidth is non-zero, info.requestedRect will - * be axpended by info.borderWidth pixels to all directions and + * be expended by info.borderWidth pixels to all directions and * image of this rect will actually be written to the patch's QImage. * That is done to eliminate border effects in smooth scaling. */ diff --git a/libs/ui/canvas/kis_update_info.h b/libs/ui/canvas/kis_update_info.h --- a/libs/ui/canvas/kis_update_info.h +++ b/libs/ui/canvas/kis_update_info.h @@ -136,7 +136,7 @@ qint32 borderWidth; /** - * Used for temporary sorage of KisImage's data + * Used for temporary storage of KisImage's data * by KisProjectionCache */ KisImagePatch patch; diff --git a/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.h b/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.h --- a/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.h +++ b/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.h @@ -40,7 +40,7 @@ * - fetch the list of dirtly frames using calcDirtyFrames() * - create some clones of the image according to the user's settings * to facilitate multithreaded rendering and processing of the frames - * - if the user doesn't have anough RAM, the clones will not be created + * - if the user doesn't have enough RAM, the clones will not be created * (the memory overhead is calculated using "projections" metric of the * statistics server). * - feed the images/threads with dirty frames until the all the frames diff --git a/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.cpp b/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.cpp --- a/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.cpp +++ b/libs/ui/dialogs/KisAsyncAnimationRenderDialogBase.cpp @@ -121,7 +121,7 @@ /** * Since this method can be called from the places where no * view manager is available, we need this manually crafted - * ugly construction to "try-lock-cance" the image. + * ugly construction to "try-lock-cancel" the image. */ bool imageIsIdle = true; diff --git a/libs/ui/input/KisQtWidgetsTweaker.cpp b/libs/ui/input/KisQtWidgetsTweaker.cpp --- a/libs/ui/input/KisQtWidgetsTweaker.cpp +++ b/libs/ui/input/KisQtWidgetsTweaker.cpp @@ -304,7 +304,7 @@ break; case ShortcutOverriderBase::DecisionOnShortcutOverride::overrideShortcut: event->accept(); - //once shortcutoverride acepted, qt stop asking everyone + //once shortcutoverride accepted, qt stop asking everyone //about it and proceed to handling next event d->lastKeyPressProcessingComplete = true; retval = true; diff --git a/libs/ui/input/kis_abstract_input_action.h b/libs/ui/input/kis_abstract_input_action.h --- a/libs/ui/input/kis_abstract_input_action.h +++ b/libs/ui/input/kis_abstract_input_action.h @@ -167,7 +167,7 @@ virtual bool isShortcutRequired(int shortcut) const; /** - * Some of the actions are available in particular sutiations + * Some of the actions are available in particular situations * only. E.g. switch frame action is available iff a animated * layer is selected. If isAvailable() returns true then the * action will *not* be triggered by the shortcut matcher. diff --git a/libs/ui/input/kis_abstract_shortcut.h b/libs/ui/input/kis_abstract_shortcut.h --- a/libs/ui/input/kis_abstract_shortcut.h +++ b/libs/ui/input/kis_abstract_shortcut.h @@ -36,7 +36,7 @@ /** * The priority of the shortcut. The shortcut with the - * greatest value will be chosen for executution + * greatest value will be chosen for execution */ virtual int priority() const = 0; diff --git a/libs/ui/input/kis_stroke_shortcut.h b/libs/ui/input/kis_stroke_shortcut.h --- a/libs/ui/input/kis_stroke_shortcut.h +++ b/libs/ui/input/kis_stroke_shortcut.h @@ -33,7 +33,7 @@ * * Idle <-> Ready <-> Running * - * The possibility of trasition between Idle <-> Ready is defined + * The possibility of transition between Idle <-> Ready is defined * with a matchReady() method. The transition Ready <-> Running is * defined by matchBegin(). The Ready state is used for showing the * user the cursor of the upcoming action and the Running state shows diff --git a/libs/ui/input/wintab/kis_tablet_support_win.cpp b/libs/ui/input/wintab/kis_tablet_support_win.cpp --- a/libs/ui/input/wintab/kis_tablet_support_win.cpp +++ b/libs/ui/input/wintab/kis_tablet_support_win.cpp @@ -297,17 +297,17 @@ if (convertedButton == Qt::NoButton) { /** - * Sometimes the driver-handled sortcuts are just + * Sometimes the driver-handled shortcuts are just * keyboard modifiers, so ideally we should handle * them as well. The problem is that we cannot * know if the shortcut was a pan/zoom action or a - * shortcut. So here we use a "hackish" approash. + * shortcut. So here we use a "hackish" approach. * We just check if any modifier has been pressed * and, if so, pass the button to Krita. Of * course, if the driver uses some really complex * shortcuts like "Shift + stylus btn" to generate * some recorded shortcut, it will not work. But I - * guess it will be ok for th emost of the + * guess it will be ok for the most of the * usecases. * * WARNING: this hack will *not* work if you bind @@ -938,7 +938,7 @@ #ifdef UNICODE if (!isSurfacePro3) { /** - * Some really "nice" tablet drivers don't know that trhey are + * Some really "nice" tablet drivers don't know that they are * supposed to return their name length when the buffer is * null and they try to write into it effectively causing a * suicide. So we cannot rely on it :( diff --git a/libs/ui/input/wintab/kis_xi2_event_filter.cpp b/libs/ui/input/wintab/kis_xi2_event_filter.cpp --- a/libs/ui/input/wintab/kis_xi2_event_filter.cpp +++ b/libs/ui/input/wintab/kis_xi2_event_filter.cpp @@ -122,7 +122,7 @@ * started to process all the events using XInput 2.2. It * means that Qt is not longer subscribed to the emulated * mouse events that usually go after the tablet. Instead of - * the flow which was previosly generated by X11, Qt now + * the flow which was previously generated by X11, Qt now * re-emits mouse events itself in * QXcbConnection::xi2HandleTabletEvent() using a call to * QXcbWindow::handleXIMouseEvent(). And, yes, here in Krita diff --git a/libs/ui/kis_action.h b/libs/ui/kis_action.h --- a/libs/ui/kis_action.h +++ b/libs/ui/kis_action.h @@ -60,7 +60,7 @@ ACTIVE_LAYER = 0x0020, ///< Activate if the current node is a layer (vector or pixel) ACTIVE_TRANSPARENCY_MASK = 0x0040, ///< Activate if the current node is a transparency mask ACTIVE_SHAPE_LAYER = 0x0080, ///< Activate if the current node is a vector layer - PIXELS_SELECTED = 0x0100, ///< Activate if any pixels are selcted (with any kind of selection) + PIXELS_SELECTED = 0x0100, ///< Activate if any pixels are selected (with any kind of selection) SHAPES_SELECTED = 0x0200, ///< Activate if any vector shape is selected ANY_SELECTION_WITH_PIXELS = 0x0400, ///< ??? PIXELS_IN_CLIPBOARD = 0x0800, ///< Activate if the clipboard contains pixels diff --git a/libs/ui/kis_psd_layer_style_resource.cpp b/libs/ui/kis_psd_layer_style_resource.cpp --- a/libs/ui/kis_psd_layer_style_resource.cpp +++ b/libs/ui/kis_psd_layer_style_resource.cpp @@ -159,7 +159,7 @@ } if (!found) { - warnKrita << "WARNING: loading layer style for" << layer->name() << "failed! It requests unexistent style:" << uuid; + warnKrita << "WARNING: loading layer style for" << layer->name() << "failed! It requests inexistent style:" << uuid; } } diff --git a/libs/ui/opengl/kis_texture_tile.cpp b/libs/ui/opengl/kis_texture_tile.cpp --- a/libs/ui/opengl/kis_texture_tile.cpp +++ b/libs/ui/opengl/kis_texture_tile.cpp @@ -268,7 +268,7 @@ */ /** - * WARN: The width of the stripes will be equal to the broder + * WARN: The width of the stripes will be equal to the broader * width of the tiles. */ diff --git a/libs/ui/tool/kis_resources_snapshot.cpp b/libs/ui/tool/kis_resources_snapshot.cpp --- a/libs/ui/tool/kis_resources_snapshot.cpp +++ b/libs/ui/tool/kis_resources_snapshot.cpp @@ -87,8 +87,8 @@ m_d->currentGradient = resourceManager->resource(KisCanvasResourceProvider::CurrentGradient).value(); /** - * We should deep-copy the preset, so that long-runnign actions - * will have correct brush parameters. Theoretically this cloniong + * We should deep-copy the preset, so that long-running actions + * will have correct brush parameters. Theoretically this cloning * can be expensive, but according to measurements, it takes * something like 0.1 ms for an average preset. */ diff --git a/libs/ui/tool/kis_tool_freehand_helper.cpp b/libs/ui/tool/kis_tool_freehand_helper.cpp --- a/libs/ui/tool/kis_tool_freehand_helper.cpp +++ b/libs/ui/tool/kis_tool_freehand_helper.cpp @@ -374,8 +374,8 @@ intersection.manhattanLength() > maxSanePoint) { intersection = 0.5 * (pi1.pos() + pi2.pos()); -// dbgKrita << "WARINING: there is no intersection point " -// << "in the basic smoothing algoriths"; +// dbgKrita << "WARNING: there is no intersection point " +// << "in the basic smoothing algorithms"; } controlTarget1 = intersection; diff --git a/libs/ui/widgets/KoFillConfigWidget.cpp b/libs/ui/widgets/KoFillConfigWidget.cpp --- a/libs/ui/widgets/KoFillConfigWidget.cpp +++ b/libs/ui/widgets/KoFillConfigWidget.cpp @@ -232,7 +232,7 @@ this, SLOT(slotProposeCurrentColorToResourceManager())); - // confure GUI + // configure GUI d->ui = new Ui_KoFillConfigWidget(); d->ui->setupUi(this); diff --git a/libs/ui/widgets/KoStrokeConfigWidget.cpp b/libs/ui/widgets/KoStrokeConfigWidget.cpp --- a/libs/ui/widgets/KoStrokeConfigWidget.cpp +++ b/libs/ui/widgets/KoStrokeConfigWidget.cpp @@ -204,7 +204,7 @@ : QWidget(parent) , d(new Private()) { - // confure GUI + // configure GUI d->ui = new Ui_KoStrokeConfigWidget(); d->ui->setupUi(this); diff --git a/libs/ui/widgets/kis_cie_tongue_widget.h b/libs/ui/widgets/kis_cie_tongue_widget.h --- a/libs/ui/widgets/kis_cie_tongue_widget.h +++ b/libs/ui/widgets/kis_cie_tongue_widget.h @@ -76,7 +76,7 @@ void drawLabels(); QRgb colorByCoord(double x, double y); - void drawSmallElipse(QPointF xy, int r, int g, int b, int sz); + void drawSmallEllipse(QPointF xy, int r, int g, int b, int sz); void resizeEvent(QResizeEvent* event) override; void paintEvent(QPaintEvent*) override; diff --git a/libs/ui/widgets/kis_cie_tongue_widget.cpp b/libs/ui/widgets/kis_cie_tongue_widget.cpp --- a/libs/ui/widgets/kis_cie_tongue_widget.cpp +++ b/libs/ui/widgets/kis_cie_tongue_widget.cpp @@ -508,7 +508,7 @@ } } -void KisCIETongueWidget::drawSmallElipse(QPointF xy, int r, int g, int b, int sz) +void KisCIETongueWidget::drawSmallEllipse(QPointF xy, int r, int g, int b, int sz) { int icx, icy; @@ -529,9 +529,9 @@ d->painter.setPen(qRgb(80, 80, 80)); d->painter.setRenderHint(QPainter::Antialiasing); if (d->colorModel ==KisCIETongueWidget::RGBA) { - drawSmallElipse((QPointF(d->Primaries[0],d->Primaries[1])), 255, 128, 128, 6); - drawSmallElipse((QPointF(d->Primaries[3],d->Primaries[4])), 128, 255, 128, 6); - drawSmallElipse((QPointF(d->Primaries[6],d->Primaries[7])), 128, 128, 255, 6); + drawSmallEllipse((QPointF(d->Primaries[0],d->Primaries[1])), 255, 128, 128, 6); + drawSmallEllipse((QPointF(d->Primaries[3],d->Primaries[4])), 128, 255, 128, 6); + drawSmallEllipse((QPointF(d->Primaries[6],d->Primaries[7])), 128, 128, 255, 6); int x1, y1, x2, y2, x3, y3; @@ -544,7 +544,7 @@ biasedLine(x3, y3, x1, y1); } /*else if (d->colorModel ==CMYK){ for (i=0; iPrimaries.size();i+++){ - drawSmallElipse((QPointF(d->Primaries[0],d->Primaries[1])), 160, 160, 160, 6);//greyscale for now + drawSmallEllipse((QPointF(d->Primaries[0],d->Primaries[1])), 160, 160, 160, 6);//greyscale for now //int x1, y1, x2, y2; //mapPoint(x1, y1, (QPointF(d->Primaries[i],d->Primaries[i+1])) ); //mapPoint(x2, y2, (QPointF(d->Primaries[i+3],d->Primaries[i+4])) ); @@ -558,7 +558,7 @@ void KisCIETongueWidget::drawWhitePoint() { - drawSmallElipse(QPointF (d->whitePoint[0],d->whitePoint[1]), 255, 255, 255, 8); + drawSmallEllipse(QPointF (d->whitePoint[0],d->whitePoint[1]), 255, 255, 255, 8); } void KisCIETongueWidget::drawGamut() diff --git a/libs/ui/widgets/kis_size_group.h b/libs/ui/widgets/kis_size_group.h --- a/libs/ui/widgets/kis_size_group.h +++ b/libs/ui/widgets/kis_size_group.h @@ -43,7 +43,7 @@ * widget can be in one, and only one, KisSizeGroup at time. * * NOTE: Added widgets in size groups must be laid out inside of a valid - * layout. The current implementation sopports widgets laid out inside of + * layout. The current implementation supports widgets laid out inside of * QGridLayout, QFormLayout and QBoxLayout. If the parent widget layout is not * one of them, then the group size will not affect the widget size. */ diff --git a/libs/ui/widgets/kis_widget_chooser.h b/libs/ui/widgets/kis_widget_chooser.h --- a/libs/ui/widgets/kis_widget_chooser.h +++ b/libs/ui/widgets/kis_widget_chooser.h @@ -35,20 +35,20 @@ struct Data { Data(const QString& ID): - id(ID), widget(0), label(0), choosen(false) { } + id(ID), widget(0), label(0), chosen(false) { } Data(const Data& d): - id(d.id), widget(d.widget), label(d.label), choosen(d.choosen) { } + id(d.id), widget(d.widget), label(d.label), chosen(d.chosen) { } Data(const QString& ID, QWidget* w, QLabel* l): - id(ID), widget(w), label(l), choosen(false) { } + id(ID), widget(w), label(l), chosen(false) { } friend bool operator == (const Data& a, const Data& b) { return a.id == b.id; } QString id; QWidget* widget; QLabel* label; - bool choosen; + bool chosen; }; typedef QList::iterator Iterator; @@ -86,7 +86,7 @@ protected Q_SLOTS: void slotButtonPressed(); - void slotWidgetChoosen(int index); + void slotWidgetChosen(int index); // QWidget interface protected: @@ -98,7 +98,7 @@ QToolButton* m_arrowButton; QButtonGroup* m_buttons; QFrame* m_popup; - QString m_choosenID; + QString m_chosenID; QList m_widgets; }; diff --git a/libs/ui/widgets/kis_widget_chooser.cpp b/libs/ui/widgets/kis_widget_chooser.cpp --- a/libs/ui/widgets/kis_widget_chooser.cpp +++ b/libs/ui/widgets/kis_widget_chooser.cpp @@ -111,7 +111,7 @@ layout->setSpacing(0); for(Iterator i=m_widgets.begin(); i!=m_widgets.end(); ++i) { - if(i->choosen) { + if(i->chosen) { if (i->label) { layout->addWidget(i->label); } @@ -137,7 +137,7 @@ QList buttons = m_buttons->buttons(); for(Iterator i=m_widgets.begin(); i!=m_widgets.end(); ++i) { - if(!i->choosen) { + if(!i->chosen) { if(row == buttons.size()) { QToolButton* bn = new QToolButton(); @@ -169,7 +169,7 @@ delete m_buttons; m_buttons = group; - connect(m_buttons, SIGNAL(buttonClicked(int)), SLOT(slotWidgetChoosen(int))); + connect(m_buttons, SIGNAL(buttonClicked(int)), SLOT(slotWidgetChosen(int))); return layout; } @@ -179,7 +179,7 @@ Iterator data = std::find(m_widgets.begin(), m_widgets.end(), Data(id)); if(data != m_widgets.end()) { - if(!data->choosen) { + if(!data->chosen) { delete m_popup->layout(); m_popup->setLayout(createPopupLayout()); m_popup->adjustSize(); @@ -196,14 +196,14 @@ QWidget* KisWidgetChooser::chooseWidget(const QString& id) { - QWidget* choosenWidget = 0; + QWidget* chosenWidget = 0; for(Iterator i=m_widgets.begin(); i!=m_widgets.end(); ++i) { if(i->id == id) { - choosenWidget = i->widget; - i->choosen = true; + chosenWidget = i->widget; + i->chosen = true; } - else i->choosen = false; + else i->chosen = false; } delete m_popup->layout(); @@ -216,7 +216,7 @@ KisConfig cfg(false); cfg.setToolbarSlider(m_chooserid, id); - return choosenWidget; + return chosenWidget; } QWidget* KisWidgetChooser::getWidget(const QString& id) const @@ -264,7 +264,7 @@ showPopupWidget(); } -void KisWidgetChooser::slotWidgetChoosen(int index) +void KisWidgetChooser::slotWidgetChosen(int index) { chooseWidget(m_widgets[index].id); m_popup->hide(); diff --git a/libs/vectorimage/libsvm/SvmParser.cpp b/libs/vectorimage/libsvm/SvmParser.cpp --- a/libs/vectorimage/libsvm/SvmParser.cpp +++ b/libs/vectorimage/libsvm/SvmParser.cpp @@ -325,7 +325,7 @@ if (dxArrayLen > 0) { quint32 maxDxArrayLen = totalSize - stream.device()->pos(); if (dxArrayLen > maxDxArrayLen) { - debugVectorImage << "Defined dxArrayLen= " << dxArrayLen << "exceeds availalable size" << maxDxArrayLen; + debugVectorImage << "Defined dxArrayLen= " << dxArrayLen << "exceeds available size" << maxDxArrayLen; dxArrayLen = maxDxArrayLen; } diff --git a/libs/vectorimage/libwmf/qwmf.h b/libs/vectorimage/libwmf/qwmf.h --- a/libs/vectorimage/libwmf/qwmf.h +++ b/libs/vectorimage/libwmf/qwmf.h @@ -60,8 +60,8 @@ /** * Paint metafile to given paint-device using absolute or relative coordinate. - * - absolute coord. Reset the world transfomation Matrix - * - relative coord. Use the existing world transfomation Matrix + * - absolute coord. Reset the world transformation Matrix + * - relative coord. Use the existing world transformation Matrix * * @return true on success. */ diff --git a/libs/widgets/KisPaletteModel.h b/libs/widgets/KisPaletteModel.h --- a/libs/widgets/KisPaletteModel.h +++ b/libs/widgets/KisPaletteModel.h @@ -126,7 +126,7 @@ /** * @brief removeEntry * proper function to remove the colorsetentry at the given index. - * The consolidtes both removeentry and removegroup. + * The consolidates both removeentry and removegroup. * @param keepColors: This bool determines whether, when deleting a group, * the colors should be added to the default group. This is usually desirable, * so hence the default is true. diff --git a/libs/widgets/KoResourceItemChooser.h b/libs/widgets/KoResourceItemChooser.h --- a/libs/widgets/KoResourceItemChooser.h +++ b/libs/widgets/KoResourceItemChooser.h @@ -95,7 +95,7 @@ /// shows the preview converted to grayscale void setGrayscalePreview(bool grayscale); - /// sets the visibilty of tagging KlineEdits. + /// sets the visibility of tagging KlineEdits. void showTaggingBar(bool show); ///Set a proxy model with will be used to filter the resources diff --git a/libs/widgets/KoResourceTagStore.h b/libs/widgets/KoResourceTagStore.h --- a/libs/widgets/KoResourceTagStore.h +++ b/libs/widgets/KoResourceTagStore.h @@ -31,7 +31,7 @@ class QString; /** - * KoResourceTagging allows to add and delete tags to resources and also search reources using tags + * KoResourceTagging allows to add and delete tags to resources and also search resources using tags */ class KRITAWIDGETS_EXPORT KoResourceTagStore { diff --git a/libs/widgets/KoRuler.h b/libs/widgets/KoRuler.h --- a/libs/widgets/KoRuler.h +++ b/libs/widgets/KoRuler.h @@ -194,14 +194,14 @@ /** * Set whether the tabs is relative to the paragraph indent - * @param relative tabs are relative to pragraph indent if true, default is false. + * @param relative tabs are relative to paragraph indent if true, default is false. */ void setRelativeTabs(bool relative); /** * Update the tabs * @param tabs a list of tabs that is shown on the ruler - * @param tabDistance the distncte between regular interval tabs + * @param tabDistance the distance between regular interval tabs */ void updateTabs(const QList &tabs, qreal tabDistance); diff --git a/libs/widgets/KoZoomAction.h b/libs/widgets/KoZoomAction.h --- a/libs/widgets/KoZoomAction.h +++ b/libs/widgets/KoZoomAction.h @@ -28,7 +28,7 @@ /** * Class KoZoomAction implements an action to provide zoom values. * In a toolbar, KoZoomAction will show a dropdown list (combobox), also with - * the possibility for the user to enter arbritrary zoom value + * the possibility for the user to enter arbitrary zoom value * (must be an integer). The values shown on the list are always * sorted. * In a statusbar it provides a scale (slider) plus an editable value plus diff --git a/libs/widgets/tests/kis_parse_spin_boxes_test.cpp b/libs/widgets/tests/kis_parse_spin_boxes_test.cpp --- a/libs/widgets/tests/kis_parse_spin_boxes_test.cpp +++ b/libs/widgets/tests/kis_parse_spin_boxes_test.cpp @@ -108,7 +108,7 @@ spinBox.setValue(0.0); - QVERIFY2(spinBox.isLastValid(), QString("SpinBox unsable to recover error free state after a value reset.") + QVERIFY2(spinBox.isLastValid(), QString("SpinBox unable to recover error free state after a value reset.") .toStdString().c_str()); spinBox.setValue(0); @@ -260,7 +260,7 @@ spinBox.setValue(0); - QVERIFY2(spinBox.isLastValid(), QString("SpinBox unsable to recover error free state after a value reset.") + QVERIFY2(spinBox.isLastValid(), QString("SpinBox unable to recover error free state after a value reset.") .toStdString().c_str()); spinBox.setValue(0); diff --git a/libs/widgetutils/KisActionsSnapshot.cpp b/libs/widgetutils/KisActionsSnapshot.cpp --- a/libs/widgetutils/KisActionsSnapshot.cpp +++ b/libs/widgetutils/KisActionsSnapshot.cpp @@ -80,7 +80,7 @@ QMap KisActionsSnapshot::actionCollections() { /** - * A small heruistics to show warnings only when unknown shortcuts arppear + * A small heuristics to show warnings only when unknown shortcuts appear * in the non-registered list */ if (m_d->nonRegisteredShortcuts.size() > 4 && diff --git a/libs/widgetutils/KoGroupButton.cpp b/libs/widgetutils/KoGroupButton.cpp --- a/libs/widgetutils/KoGroupButton.cpp +++ b/libs/widgetutils/KoGroupButton.cpp @@ -134,7 +134,7 @@ painter.setOpacity(1.0); // Separator - //! @todo make specific fixes for styles such as Plastique, Cleanlooks if there's practical no alernative + //! @todo make specific fixes for styles such as Plastique, Cleanlooks if there's practical no alternative const int y1 = opt.rect.top() + 1; const int y2 = opt.rect.bottom() - 1; painter.setOpacity(0.4); diff --git a/libs/widgetutils/KoProgressUpdater.cpp b/libs/widgetutils/KoProgressUpdater.cpp --- a/libs/widgetutils/KoProgressUpdater.cpp +++ b/libs/widgetutils/KoProgressUpdater.cpp @@ -57,7 +57,7 @@ int currentProgress = 0; bool isUndefinedState = false; bool updated; // is true whenever the progress needs to be recomputed - QTimer updateGuiTimer; // fires regulary to update the progress bar widget + QTimer updateGuiTimer; // fires regularly to update the progress bar widget QList > subtasks; bool canceled; int updateInterval = 250; // ms, 4 updates per second should be enough diff --git a/libs/widgetutils/kis_spin_box_unit_manager.h b/libs/widgetutils/kis_spin_box_unit_manager.h --- a/libs/widgetutils/kis_spin_box_unit_manager.h +++ b/libs/widgetutils/kis_spin_box_unit_manager.h @@ -72,7 +72,7 @@ * This class doesn't allow to use relative units (units whose conversion factor is dependent of the context), even if it's private data is prepared to manage it. * The reason for this is that from the library of this class it is very hard to easily access the information needed. So all will be managed by subclasses in other libs. * - * The class is a subclass of QAbstractListModel, so that available list of units is easily acessed by other Qt standard components, like QComboBoxes. + * The class is a subclass of QAbstractListModel, so that available list of units is easily accessed by other Qt standard components, like QComboBoxes. * */ class KRITAWIDGETUTILS_EXPORT KisSpinBoxUnitManager : public QAbstractListModel diff --git a/libs/widgetutils/xmlgui/kmainwindow.h b/libs/widgetutils/xmlgui/kmainwindow.h --- a/libs/widgetutils/xmlgui/kmainwindow.h +++ b/libs/widgetutils/xmlgui/kmainwindow.h @@ -252,7 +252,7 @@ * of restoring and saving automatically. Make sure you call this * _after all_ your *bars have been created. * - * To make sure that KMainWindow propertly obtains the default + * To make sure that KMainWindow properly obtains the default * size of the window you should do the following: * - Remove hard coded resize() calls in the constructor or main, they * should be removed in favor of letting the automatic resizing diff --git a/plugins/dockers/advancedcolorselector/kis_color_selector.h b/plugins/dockers/advancedcolorselector/kis_color_selector.h --- a/plugins/dockers/advancedcolorselector/kis_color_selector.h +++ b/plugins/dockers/advancedcolorselector/kis_color_selector.h @@ -90,10 +90,10 @@ Acs::ColorRole m_lastColorRole; - /// if Krita starts with a reference to this componenet that is attached to a canvas, it will call setCanvas() + /// if Krita starts with a reference to this component that is attached to a canvas, it will call setCanvas() /// that check will be what ultimately decides whether this component will look enabled or disabled /// This color selector is sometimes not attached to the canvas, so we shouldn't disable it in that situation - /// One instane of that is when you select the color wheel type from the settings. + /// One instance of that is when you select the color wheel type from the settings. bool m_hasAtLeastOneDocumentOpen = true; public: diff --git a/plugins/extensions/pykrita/kritarunner/main.cpp b/plugins/extensions/pykrita/kritarunner/main.cpp --- a/plugins/extensions/pykrita/kritarunner/main.cpp +++ b/plugins/extensions/pykrita/kritarunner/main.cpp @@ -55,7 +55,7 @@ "The function to call (by default __main__ is called).", "function", "__main__"); parser.addOption(functionOption); - parser.addPositionalArgument("[argument(s)]", "The argumetns for the script"); + parser.addPositionalArgument("[argument(s)]", "The arguments for the script"); parser.process(app); if (!parser.isSet(scriptOption)) { diff --git a/plugins/extensions/resourcemanager/resourcemanager.cpp b/plugins/extensions/resourcemanager/resourcemanager.cpp --- a/plugins/extensions/resourcemanager/resourcemanager.cpp +++ b/plugins/extensions/resourcemanager/resourcemanager.cpp @@ -266,7 +266,7 @@ { QStringList resources = importResources(i18n("Import Gradients"), QStringList() << "image/svg+xml" << "application/x-gimp-gradient" - << "applicaition/x-karbon-gradient"); + << "application/x-karbon-gradient"); Q_FOREACH (const QString &res, resources) { d->gradientServer->importResourceFile(res); } diff --git a/plugins/filters/embossfilter/kis_emboss_filter.cpp b/plugins/filters/embossfilter/kis_emboss_filter.cpp --- a/plugins/filters/embossfilter/kis_emboss_filter.cpp +++ b/plugins/filters/embossfilter/kis_emboss_filter.cpp @@ -77,7 +77,7 @@ * d => Emboss value * * Theory => This is an amazing effect. And the theory is very simple to - * understand. You get the diference between the colors and + * understand. You get the difference between the colors and * increase it. After this, get the gray tone */ void KisEmbossFilter::processImpl(KisPaintDeviceSP device, diff --git a/plugins/filters/halftone/kis_halftone_filter.h b/plugins/filters/halftone/kis_halftone_filter.h --- a/plugins/filters/halftone/kis_halftone_filter.h +++ b/plugins/filters/halftone/kis_halftone_filter.h @@ -49,7 +49,7 @@ * many people the half-tone pattern also serves as a neutral pattern that is more pleasant * than plain flat look. The half tone in this case also becomes a stylistic technique. * - * Based on that, there's a few ways a user could want to use this techique: + * Based on that, there's a few ways a user could want to use this technique: * 1. Per-component. Per patch, each component will have a halftone approximated. * 2. Intensity only. The relative luminosity of the patch is determined and will be used * for the approximation, resulting in a black/white pattern. diff --git a/plugins/filters/halftone/kis_halftone_filter.cpp b/plugins/filters/halftone/kis_halftone_filter.cpp --- a/plugins/filters/halftone/kis_halftone_filter.cpp +++ b/plugins/filters/halftone/kis_halftone_filter.cpp @@ -63,7 +63,7 @@ setSupportsThreading(false); } -//I am pretty terrible at trigionometry, hence all the comments. +//I am pretty terrible at trigonometry, hence all the comments. void KisHalftoneFilter::processImpl(KisPaintDeviceSP device, const QRect &applyRect, const KisFilterConfigurationSP config, diff --git a/plugins/flake/artistictextshape/MoveStartOffsetStrategy.h b/plugins/flake/artistictextshape/MoveStartOffsetStrategy.h --- a/plugins/flake/artistictextshape/MoveStartOffsetStrategy.h +++ b/plugins/flake/artistictextshape/MoveStartOffsetStrategy.h @@ -34,11 +34,11 @@ MoveStartOffsetStrategy(KoToolBase *tool, ArtisticTextShape *text); ~MoveStartOffsetStrategy() override; - // reimplemnted from KoInteractionStrategy + // reimplemented from KoInteractionStrategy void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override; - // reimplemnted from KoInteractionStrategy + // reimplemented from KoInteractionStrategy KUndo2Command *createCommand() override; - // reimplemnted from KoInteractionStrategy + // reimplemented from KoInteractionStrategy void finishInteraction(Qt::KeyboardModifiers modifiers) override; private: ArtisticTextShape *m_text; ///< the text shape we are working on diff --git a/plugins/flake/artistictextshape/SelectTextStrategy.h b/plugins/flake/artistictextshape/SelectTextStrategy.h --- a/plugins/flake/artistictextshape/SelectTextStrategy.h +++ b/plugins/flake/artistictextshape/SelectTextStrategy.h @@ -32,11 +32,11 @@ SelectTextStrategy(ArtisticTextTool *textTool, int cursor); ~SelectTextStrategy() override; - // reimplemnted from KoInteractionStrategy + // reimplemented from KoInteractionStrategy void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override; - // reimplemnted from KoInteractionStrategy + // reimplemented from KoInteractionStrategy KUndo2Command *createCommand() override; - // reimplemnted from KoInteractionStrategy + // reimplemented from KoInteractionStrategy void finishInteraction(Qt::KeyboardModifiers modifiers) override; private: diff --git a/plugins/flake/pathshapes/ellipse/EllipseShape.h b/plugins/flake/pathshapes/ellipse/EllipseShape.h --- a/plugins/flake/pathshapes/ellipse/EllipseShape.h +++ b/plugins/flake/pathshapes/ellipse/EllipseShape.h @@ -112,7 +112,7 @@ qreal m_kindAngle; // the center of the ellipse QPointF m_center; - // the radii of the ellips + // the radii of the ellipse QPointF m_radii; // the actual ellipse type EllipseType m_type; diff --git a/plugins/flake/pathshapes/enhancedpath/EnhancedPathParameter.h b/plugins/flake/pathshapes/enhancedpath/EnhancedPathParameter.h --- a/plugins/flake/pathshapes/enhancedpath/EnhancedPathParameter.h +++ b/plugins/flake/pathshapes/enhancedpath/EnhancedPathParameter.h @@ -81,7 +81,7 @@ /// Constructs named parameter from given identifier string EnhancedPathNamedParameter(const QString &identifier, EnhancedPathShape *parent); qreal evaluate() override; - /// Returns identfier type from given string + /// Returns identifier type from given string static Identifier identifierFromString(const QString &text); QString toString() const override; private: diff --git a/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.h b/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.h --- a/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.h +++ b/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.h @@ -103,14 +103,14 @@ /// Converts from shape coordinates to viewbox coordinates QPointF shapeToViewbox(const QPointF &point) const; - /// Sets if the shape is to be mirrored horizontally before aplying any other transformations + /// Sets if the shape is to be mirrored horizontally before applying any other transformations //NOTE: in the standard nothing is mentioned about the priorities of the transformations" //it's assumed like this because of the behavior shwon in OOo void setMirrorHorizontally(bool mirrorHorizontally); - /// Sets if the shape is to be mirrored vertically before aplying any other transformations + /// Sets if the shape is to be mirrored vertically before applying any other transformations //NOTE: in the standard nothing is mentioned about the priorities of the transformations" - //it's assumed like this because of the behavior shwon in OOo + //it's assumed like this because of the behavior shown in OOo void setMirrorVertically(bool mirrorVertically); // Sets member variable representing draw:path-stretchpoint-x attribute @@ -149,13 +149,13 @@ /// Updates the size and position of an optionally existing text-on-shape text area void updateTextArea(); - /// Enables chaching results + /// Enables caching results void enableResultCache(bool enable); // This function checks if draw:path-stretchpoint-x or draw:path-stretchpoint-y attributes are set. // If the attributes are set the path shape coordinates (m_subpaths) are changed so that the form // of the shape is preserved after stretching. It is needed for example in round-rectangles, to - // have the corners round after stretching. Without it the corners would be eliptical. + // have the corners round after stretching. Without it the corners would be elliptical. // Returns true if any points were actually changed, otherwise false. bool useStretchPoints(const QSizeF &size, qreal &scale); @@ -170,15 +170,15 @@ QPointF m_viewBoxOffset; QStringList m_textArea; QList m_commands; ///< the commands creating the outline - QList m_enhancedHandles; ///< the handles for modifiying the shape + QList m_enhancedHandles; ///< the handles for modifying the shape FormulaStore m_formulae; ///< the formulae ModifierStore m_modifiers; ///< the modifier values ParameterStore m_parameters; ///< the shared parameters bool m_mirrorVertically; /// m_resultChache; ///< cache for intermediate results used when evaluating path + QHash m_resultCache; ///< cache for intermediate results used when evaluating path bool m_cacheResults; ///< indicates if result cache is enabled }; diff --git a/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.cpp b/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.cpp --- a/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.cpp +++ b/plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.cpp @@ -66,7 +66,7 @@ m_mirrorHorizontally(rhs.m_mirrorHorizontally), m_pathStretchPointX(rhs.m_pathStretchPointX), m_pathStretchPointY(rhs.m_pathStretchPointY), - m_resultChache(rhs.m_resultChache), + m_resultCache(rhs.m_resultCache), m_cacheResults(rhs.m_cacheResults) { } @@ -223,16 +223,16 @@ // referenced formula case '?': { QString fname = reference.mid(1); - if (m_cacheResults && m_resultChache.contains(fname)) { - res = m_resultChache.value(fname); + if (m_cacheResults && m_resultCache.contains(fname)) { + res = m_resultCache.value(fname); } else { FormulaStore::const_iterator formulaIt = m_formulae.constFind(fname); if (formulaIt != m_formulae.constEnd()) { EnhancedPathFormula *formula = formulaIt.value(); if (formula) { res = formula->evaluate(); if (m_cacheResults) { - m_resultChache.insert(fname, res); + m_resultCache.insert(fname, res); } } } @@ -723,7 +723,7 @@ void EnhancedPathShape::enableResultCache(bool enable) { - m_resultChache.clear(); + m_resultCache.clear(); m_cacheResults = enable; } diff --git a/plugins/flake/textshape/TextShape.cpp b/plugins/flake/textshape/TextShape.cpp --- a/plugins/flake/textshape/TextShape.cpp +++ b/plugins/flake/textshape/TextShape.cpp @@ -257,7 +257,7 @@ const_cast(this)->removeAdditionalAttribute("fo:min-height"); writer.startElement("draw:frame"); // if the TextShape is wrapped in a shrink to fit container we need to save the geometry of the container as - // the geomerty of the shape might have been changed. + // the geometry of the shape might have been changed. if (ShrinkToFitShapeContainer *stf = dynamic_cast(this->parent())) { stf->saveOdfAttributes(context, OdfSize | OdfPosition | OdfTransformation); saveOdfAttributes(context, OdfAdditionalAttributes | OdfMandatories | OdfCommonChildElements); diff --git a/plugins/flake/textshape/TextTool.cpp b/plugins/flake/textshape/TextTool.cpp --- a/plugins/flake/textshape/TextTool.cpp +++ b/plugins/flake/textshape/TextTool.cpp @@ -2666,7 +2666,7 @@ }; /** - * FIXME: The messages genearted by the Text Tool might not be + * FIXME: The messages generated by the Text Tool might not be * properly translated, since we don't control it in * type-safe way. * @@ -3008,7 +3008,7 @@ } else if (fragment.length() > charStyleShort.length()) { fragmentText += charStyleShort; } else if (fragment.length() >= 2) { - fragmentText += QChar(8230); // elipses + fragmentText += QChar(8230); // ellipses } int rest = fragmentStart - (lastPrintedChar - CHARSPERLINE) + fragment.length() - fragmentText.length(); diff --git a/plugins/flake/textshape/commands/ChangeListLevelCommand.h b/plugins/flake/textshape/commands/ChangeListLevelCommand.h --- a/plugins/flake/textshape/commands/ChangeListLevelCommand.h +++ b/plugins/flake/textshape/commands/ChangeListLevelCommand.h @@ -55,12 +55,12 @@ /// revert the actions done in redo void undo() override; - /// reimplemnted from KUndo2Command + /// reimplemented from KUndo2Command int id() const override { return 58450689; } - /// reimplemnted from KUndo2Command + /// reimplemented from KUndo2Command bool mergeWith(const KUndo2Command *other) override; private: diff --git a/plugins/flake/textshape/dialogs/AbstractStylesModel.h b/plugins/flake/textshape/dialogs/AbstractStylesModel.h --- a/plugins/flake/textshape/dialogs/AbstractStylesModel.h +++ b/plugins/flake/textshape/dialogs/AbstractStylesModel.h @@ -31,7 +31,7 @@ /** This class is used to provide widgets (like the @class StylesCombo) the styles available to the document being worked on. * - * This is an abstract class supposed to be inherited only. DO NOT instentiate this class directly. + * This is an abstract class supposed to be inherited only. DO NOT instantiate this class directly. * * On top of the standard QAbstractItemModel methods to re-implement, there are 3 specific methods which need to be re-implemented in order to be used with the styles widgets: * - setStyleThumbnailer: a @class KoStyleThumbnailer is used to layout/draw a preview of the style diff --git a/plugins/flake/textshape/kotext/KoInlineObject.h b/plugins/flake/textshape/kotext/KoInlineObject.h --- a/plugins/flake/textshape/kotext/KoInlineObject.h +++ b/plugins/flake/textshape/kotext/KoInlineObject.h @@ -163,7 +163,7 @@ * @param painter the painting object to paint on. Note that unline many places in calligra painting * should happen at the position indicated by the rect, not at top-left. * @param rect the rectangle inside which the variable can paint itself. Painting outside the rect - * will give varous problems with regards to repainting issues. + * will give various problems with regards to repainting issues. */ virtual void paint(QPainter &painter, QPaintDevice *pd, const QTextDocument *document, const QRectF &rect, const QTextInlineObject &object, int posInDocument, const QTextCharFormat &format) = 0; diff --git a/plugins/flake/textshape/kotext/KoInlineObjectFactoryBase.h b/plugins/flake/textshape/kotext/KoInlineObjectFactoryBase.h --- a/plugins/flake/textshape/kotext/KoInlineObjectFactoryBase.h +++ b/plugins/flake/textshape/kotext/KoInlineObjectFactoryBase.h @@ -94,7 +94,7 @@ protected: /** - * Add a template with the properties of a speficic type of object this factory can generate + * Add a template with the properties of a specific type of object this factory can generate * using the createInlineObject() method. * @param params The new template this factory knows to produce */ diff --git a/plugins/flake/textshape/kotext/KoInlineObjectRegistry.h b/plugins/flake/textshape/kotext/KoInlineObjectRegistry.h --- a/plugins/flake/textshape/kotext/KoInlineObjectRegistry.h +++ b/plugins/flake/textshape/kotext/KoInlineObjectRegistry.h @@ -54,7 +54,7 @@ * This method will find all the InlineObjectFactories that are installed in the system and * find out which object they provide. If a factory provides a variable, then all its * templates will be added to the response. - * Each of thse actions, when executed, will insert the relevant variable in the current text-position. + * Each of these actions, when executed, will insert the relevant variable in the current text-position. * The actions assume that the text tool is selected, if that's not the case then they will silently fail. * @param host the canvas for which these actions are created. Note that the actions will get these * actions as a parent (for memory management purposes) as well. diff --git a/plugins/flake/textshape/kotext/KoList.cpp b/plugins/flake/textshape/kotext/KoList.cpp --- a/plugins/flake/textshape/kotext/KoList.cpp +++ b/plugins/flake/textshape/kotext/KoList.cpp @@ -71,7 +71,7 @@ // Ok, so we are now ready to add the block to another list, but which other list? // For headers we always want to continue from any previous header - // For normal lists we either want to continue an adjecent list or create a new one + // For normal lists we either want to continue an adjacent list or create a new one if (block.blockFormat().hasProperty(KoParagraphStyle::OutlineLevel)) { for (QTextBlock b = block.previous();b.isValid(); b = b.previous()) { list = document.list(b); diff --git a/plugins/flake/textshape/kotext/KoSection.cpp b/plugins/flake/textshape/kotext/KoSection.cpp --- a/plugins/flake/textshape/kotext/KoSection.cpp +++ b/plugins/flake/textshape/kotext/KoSection.cpp @@ -175,7 +175,7 @@ if (!d->text_protected.isEmpty()) writer->addAttribute("text:text-protected", d->text_protected); if (!d->protection_key.isEmpty()) writer->addAttribute("text:protection-key", d->protection_key); if (!d->protection_key_digest_algorithm.isEmpty()) { - writer->addAttribute("text:protection-key-digest-algorihtm", d->protection_key_digest_algorithm); + writer->addAttribute("text:protection-key-digest-algorithm", d->protection_key_digest_algorithm); } if (!d->style_name.isEmpty()) writer->addAttribute("text:style-name", d->style_name); diff --git a/plugins/flake/textshape/kotext/KoTextDebug.h b/plugins/flake/textshape/kotext/KoTextDebug.h --- a/plugins/flake/textshape/kotext/KoTextDebug.h +++ b/plugins/flake/textshape/kotext/KoTextDebug.h @@ -143,7 +143,7 @@ * * @note { The fragment content will be enclosed in '|' characters. } * - * @param fragment the fragment which's content should be dumped. + * @param fragment the fragment which content should be dumped. * @param out output stream to dump to. */ static void dumpFragment(const QTextFragment &fragment, QTextStream &out); diff --git a/plugins/flake/textshape/kotext/KoTextEditor_p.h b/plugins/flake/textshape/kotext/KoTextEditor_p.h --- a/plugins/flake/textshape/kotext/KoTextEditor_p.h +++ b/plugins/flake/textshape/kotext/KoTextEditor_p.h @@ -103,7 +103,7 @@ /** * This method allows to perform custom operation when the visitor reaches a QTextTable - * @param visitedTable pointer to the currenlty visited table object + * @param visitedTable pointer to the currently visited table object * @param visitingMode flag, marks if the table is just partly visited or entirely */ virtual void visitTable(QTextTable *visitedTable, ObjectVisitingMode visitingMode) @@ -114,7 +114,7 @@ /** * This method allows to perform custom operation when the visitor reaches a QTextTableCell - * @param visitedTable pointer to the currenlty visited cell object + * @param visitedTable pointer to the currently visited cell object * @param visitingMode flag, marks if the cell is just partly visited or entirely */ virtual void visitTableCell(QTextTableCell *visitedCell, ObjectVisitingMode visitingMode) diff --git a/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp b/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp --- a/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp +++ b/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp @@ -35,7 +35,7 @@ #include "TextDebug.h" /** Calligra's undo/redo framework. - The @class KoTextEditor undo/redo framework sits between the @class QTextDocument and the apllication's undo/redo stack. + The @class KoTextEditor undo/redo framework sits between the @class QTextDocument and the application's undo/redo stack. When the @class QTextDocument is changed by an editing action, it internally creates an undo/redo command. When doing so a signal (undoCommandAdded()) is emitted by the @class QTextDocument in order for applications to update their undo/redo stack accordingly. Each @class QTextDocument used in Calligra is handled by a specific @class KoTextEditor. It is responsible for on the one hand edit the @class QTextDocument, and on the other hand to listen for the QTextDocument's signal. @@ -48,7 +48,7 @@ These are: NoOp: this states indicates that the KoTextEditor is not editing the QTextDocument. KeyPress: this state indicates that the user is typing text. All text typed in succession should correspond to one undo command. To be used when entering text outside of an insertTextCommand. - Delete: this state indicates that the user is deleting characters. All deletions done in succession should correspond to one undo command. To be used for deleting outside a deleteCommand. Currently not in use, our deltion is done through a command because of inline objects. + Delete: this state indicates that the user is deleting characters. All deletions done in succession should correspond to one undo command. To be used for deleting outside a deleteCommand. Currently not in use, our deletion is done through a command because of inline objects. Format: this state indicates that we are formatting text. To be used when formatting outside of a command. Custom: this state indicates that the QTextDocument is changed through a KUndo2Command. diff --git a/plugins/flake/textshape/kotext/KoTextPage.h b/plugins/flake/textshape/kotext/KoTextPage.h --- a/plugins/flake/textshape/kotext/KoTextPage.h +++ b/plugins/flake/textshape/kotext/KoTextPage.h @@ -52,7 +52,7 @@ * Returns the unique number of this page for internal purposes. All pages * are numbered consecutively starting by 1. * - * This is used for example to anchor images to pages. The image then referes + * This is used for example to anchor images to pages. The image then refers * to the unique page-number. */ virtual int pageNumber() const = 0; diff --git a/plugins/flake/textshape/kotext/commands/ChangeListCommand.h b/plugins/flake/textshape/kotext/commands/ChangeListCommand.h --- a/plugins/flake/textshape/kotext/commands/ChangeListCommand.h +++ b/plugins/flake/textshape/kotext/commands/ChangeListCommand.h @@ -68,11 +68,11 @@ /// revert the actions done in redo void undo() override; - /// reimplemnted from KUndo2Command + /// reimplemented from KUndo2Command int id() const override { return 58450687; } - /// reimplemnted from KUndo2Command + /// reimplemented from KUndo2Command bool mergeWith(const KUndo2Command *other) override; private: diff --git a/plugins/flake/textshape/kotext/commands/ChangeStylesCommand.cpp b/plugins/flake/textshape/kotext/commands/ChangeStylesCommand.cpp --- a/plugins/flake/textshape/kotext/commands/ChangeStylesCommand.cpp +++ b/plugins/flake/textshape/kotext/commands/ChangeStylesCommand.cpp @@ -46,7 +46,7 @@ // TODO optimization strategy; store the formatid of the formats we checked into // a qset for 'hits' and 'ignores' and avoid the copying of the format // (fragment.charFormat() / block.blockFormat()) when the formatId is - // already checked previosly + // already checked previously KoStyleManager *sm = KoTextDocument(m_document).styleManager(); QTextCursor cursor(m_document); diff --git a/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp b/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp --- a/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp +++ b/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp @@ -439,7 +439,7 @@ KoAnnotation *annotation = dynamic_cast(range); if (anchorRange) { // we should only delete the anchor if the selection is covering it... not if the selection is - // just adjecent to the anchor. This is more in line with what other wordprocessors do + // just adjacent to the anchor. This is more in line with what other wordprocessors do if (anchorRange->position() != textEditor->selectionStart() && anchorRange->position() != textEditor->selectionEnd()) { KoShape *shape = anchorRange->anchor()->shape(); diff --git a/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h b/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h --- a/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h +++ b/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h @@ -45,11 +45,11 @@ /// revert the actions done in redo void undo() override; - /// reimplemnted from KUndo2Command + /// reimplemented from KUndo2Command int id() const override { return 58450688; } - /// reimplemnted from KUndo2Command + /// reimplemented from KUndo2Command bool mergeWith(const KUndo2Command *other) override; private: diff --git a/plugins/flake/textshape/kotext/styles/KoStyleManager.h b/plugins/flake/textshape/kotext/styles/KoStyleManager.h --- a/plugins/flake/textshape/kotext/styles/KoStyleManager.h +++ b/plugins/flake/textshape/kotext/styles/KoStyleManager.h @@ -77,7 +77,7 @@ * Mark the end of a sequence of style changes, additions, and deletions. * * Manipulation to the styles happen immediately, but calling this method - * will allow applications to put a command on the stack for undo, and for qtextdocments + * will allow applications to put a command on the stack for undo, and for qtextdocuments * to reflect the style changes. * * Important: This method must be called even if only working on a single style. diff --git a/plugins/flake/textshape/textlayout/KoTextShapeContainerModel.cpp b/plugins/flake/textshape/textlayout/KoTextShapeContainerModel.cpp --- a/plugins/flake/textshape/textlayout/KoTextShapeContainerModel.cpp +++ b/plugins/flake/textshape/textlayout/KoTextShapeContainerModel.cpp @@ -217,7 +217,7 @@ relayoutInlineObject(child); } } else { - //TODO pavolk: handle position type change: absolute to realtive, etc .. + //TODO pavolk: handle position type change: absolute to relative, etc .. child->setPosition(newPosition); relation.anchor->setOffset(relation.anchor->offset() + move); relayoutInlineObject(child); diff --git a/plugins/flake/textshape/textlayout/RunAroundHelper.cpp b/plugins/flake/textshape/textlayout/RunAroundHelper.cpp --- a/plugins/flake/textshape/textlayout/RunAroundHelper.cpp +++ b/plugins/flake/textshape/textlayout/RunAroundHelper.cpp @@ -110,7 +110,7 @@ if (isRightToLeft && line.naturalTextWidth() > m_textWidth) { // This can happen if spaces are added at the end of a line. Those spaces will not result in a // line-break. On left-to-right everything is fine and the spaces at the end are just not visible - // but on right-to-left we need to adust the position cause spaces at the end are displayed at + // but on right-to-left we need to adjust the position cause spaces at the end are displayed at // the beginning and we need to make sure that doesn't result in us cutting of text at the right side. qreal diff = line.naturalTextWidth() - m_textWidth; lineRectPart.setX(lineRectPart.x() - diff); diff --git a/plugins/impex/psd/psd_loader.cpp b/plugins/impex/psd/psd_loader.cpp --- a/plugins/impex/psd/psd_loader.cpp +++ b/plugins/impex/psd/psd_loader.cpp @@ -238,7 +238,7 @@ QString compositeOp = psd_blendmode_to_composite_op(layerRecord->infoBlocks.sectionDividerBlendMode); // Krita doesn't support pass-through blend - // mode. Instead it is just a property of a goupr + // mode. Instead it is just a property of a group // layer, so flip it if (compositeOp == COMPOSITE_PASS_THROUGH) { compositeOp = COMPOSITE_OVER; @@ -262,7 +262,7 @@ warnKrita << "WARNING: Provided PSD has unbalanced group " << "layer markers. Some masks and/or layers can " << "be lost while loading this file. Please " - << "report a bug to Krita developes and attach " + << "report a bug to Krita developers and attach " << "this file to the bugreport\n" << " " << ppVar(layerRecord->layerName) << "\n" << " " << ppVar(layerRecord->infoBlocks.sectionDividerType) << "\n" diff --git a/plugins/impex/psd/psd_resource_block.h b/plugins/impex/psd/psd_resource_block.h --- a/plugins/impex/psd/psd_resource_block.h +++ b/plugins/impex/psd/psd_resource_block.h @@ -75,7 +75,7 @@ } KisAnnotation* clone() const Q_DECL_OVERRIDE { - // HACK ALERT: we are evil! use notmal copying instead! + // HACK ALERT: we are evil! use normal copying instead! PSDResourceBlock *copied = new PSDResourceBlock(); diff --git a/plugins/paintops/libpaintop/kis_curve_option.h b/plugins/paintops/libpaintop/kis_curve_option.h --- a/plugins/paintops/libpaintop/kis_curve_option.h +++ b/plugins/paintops/libpaintop/kis_curve_option.h @@ -112,7 +112,7 @@ qreal maxSizeLikeValue; /** - * @param normalizedBaseAngle canvas rotation alngle normalized to range [0; 1] + * @param normalizedBaseAngle canvas rotation angle normalized to range [0; 1] * @param absoluteAxesFlipped true if underlying image coordinate system is flipped (horiz. mirror != vert. mirror) */ @@ -167,8 +167,8 @@ * Uses the curves set on the sensors to compute a single * double value that can control the parameters of a brush. * - * This value is derives from the falues stored in - * ValuesComponents opject. + * This value is derives from the values stored in + * ValuesComponents object. */ ValueComponents computeValueComponents(const KisPaintInformation& info) const; diff --git a/plugins/paintops/libpaintop/kis_dynamic_sensor.h b/plugins/paintops/libpaintop/kis_dynamic_sensor.h --- a/plugins/paintops/libpaintop/kis_dynamic_sensor.h +++ b/plugins/paintops/libpaintop/kis_dynamic_sensor.h @@ -126,7 +126,7 @@ virtual QWidget* createConfigurationWidget(QWidget* parent, QWidget* selector); /** - * Creates a sensor from its identifiant. + * Creates a sensor from its identifier. */ static KisDynamicSensorSP id2Sensor(const KoID& id, const QString &parentOptionName); static KisDynamicSensorSP id2Sensor(const QString& s, const QString &parentOptionName) { @@ -156,7 +156,7 @@ static QList sensorsTypes(); /** - * @return the identifiant of this sensor + * @return the identifier of this sensor */ static QString id(DynamicSensorType sensorType); diff --git a/plugins/paintops/sketch/kis_sketch_paintop.cpp b/plugins/paintops/sketch/kis_sketch_paintop.cpp --- a/plugins/paintops/sketch/kis_sketch_paintop.cpp +++ b/plugins/paintops/sketch/kis_sketch_paintop.cpp @@ -61,7 +61,7 @@ // to: i point - (offset * -random) + random * 2 // probability distance / thresholdDistnace -// shaded: probabity : paint always - 0.0 density +// shaded: probability : paint always - 0.0 density KisSketchPaintOp::KisSketchPaintOp(const KisPaintOpSettingsSP settings, KisPainter *painter, KisNodeSP node, KisImageSP image) : KisPaintOp(painter) diff --git a/plugins/paintops/tangentnormal/wdgtangenttiltoption.ui b/plugins/paintops/tangentnormal/wdgtangenttiltoption.ui --- a/plugins/paintops/tangentnormal/wdgtangenttiltoption.ui +++ b/plugins/paintops/tangentnormal/wdgtangenttiltoption.ui @@ -26,7 +26,7 @@ - A Brush Engine for Drawing 3d Tangent Normal Maps + A Brush Engine for Drawing 3d Tangent Normal Maps diff --git a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp --- a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp +++ b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp @@ -1184,7 +1184,7 @@ const QTransform centerTrans = QTransform::fromTranslate(centerPoint.x(), centerPoint.y()); const QTransform centerTransInv = QTransform::fromTranslate(-centerPoint.x(), -centerPoint.y()); - // we also add selection to the list of trasformed shapes, so that its outline is updated correctly + // we also add selection to the list of transformed shapes, so that its outline is updated correctly QList transformedShapes = editableShapes; transformedShapes << selection; diff --git a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphicShape.h b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphicShape.h --- a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphicShape.h +++ b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphicShape.h @@ -94,7 +94,7 @@ void appendPoint(const QPointF &p1, qreal angle, qreal width); void appendPointToPath(const KarbonCalligraphicPoint &p); - // returns the bounding rect of whan needs to be repainted + // returns the bounding rect of what needs to be repainted // after new points are added const QRectF lastPieceBoundingRect(); @@ -122,7 +122,7 @@ private: KarbonCalligraphicShape(const KarbonCalligraphicShape &rhs); - // auxiliary function that actually insererts the points + // auxiliary function that actually inserts the points // without doing any additional checks // the points should be given in canvas coordinates void appendPointsToPathAux(const QPointF &p1, const QPointF &p2); diff --git a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp --- a/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp +++ b/plugins/tools/karbonplugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp @@ -288,7 +288,7 @@ qreal KarbonCalligraphyTool::calculateAngle(const QPointF &oldSpeed, const QPointF &newSpeed) { - // calculate the avarage of the speed (sum of the normalized values) + // calculate the average of the speed (sum of the normalized values) qreal oldLength = QLineF(QPointF(0, 0), oldSpeed).length(); qreal newLength = QLineF(QPointF(0, 0), newSpeed).length(); QPointF oldSpeedNorm = !qFuzzyCompare(oldLength + 1, 1) ? diff --git a/plugins/tools/tool_transform2/kis_simplified_action_policy_strategy.cpp b/plugins/tools/tool_transform2/kis_simplified_action_policy_strategy.cpp --- a/plugins/tools/tool_transform2/kis_simplified_action_policy_strategy.cpp +++ b/plugins/tools/tool_transform2/kis_simplified_action_policy_strategy.cpp @@ -88,10 +88,10 @@ /** * HACK ALERT! * - * Here we explicitly check for Shift key pressed! The chioce of + * Here we explicitly check for Shift key pressed! The choice of * the stroke type is usually done before the tablet press, but * for some actions like constrain proportions we should be able - * to activate it even after the strokehas been started. For now, + * to activate it even after the stroke has been started. For now, * KisShortcutMatcher does not support it, so just hardcode this * special case. * diff --git a/plugins/tools/tool_transform2/strokes/transform_stroke_strategy.cpp b/plugins/tools/tool_transform2/strokes/transform_stroke_strategy.cpp --- a/plugins/tools/tool_transform2/strokes/transform_stroke_strategy.cpp +++ b/plugins/tools/tool_transform2/strokes/transform_stroke_strategy.cpp @@ -293,7 +293,7 @@ clearSelection(device); /** - * Seleciton masks might have an overlay enabled, we should disable that + * Selection masks might have an overlay enabled, we should disable that */ if (KisSelectionMask *mask = dynamic_cast(csd->node.data())) { KisSelectionSP selection = mask->selection(); diff --git a/sdk/tests/stroke_testing_utils.cpp b/sdk/tests/stroke_testing_utils.cpp --- a/sdk/tests/stroke_testing_utils.cpp +++ b/sdk/tests/stroke_testing_utils.cpp @@ -202,7 +202,7 @@ externalLayer); dbgKrita << "Testcase:" << testName - << "(comare against " << (testUpdates ? "projection" : "layer") << ")"; + << "(compare against " << (testUpdates ? "projection" : "layer") << ")"; QImage resultImage; resultImage = doStroke(cancelled, externalLayer, testUpdates);