Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix typos in libs/ui and other misc. files
Kunda Kie119aecf43d4
diff --git a/build-tools/ci-scripts/upload-nightly-packages.py b/build-tools/ci-scripts/upload-nightly-packages.pyindex 3e14627535..4b88553a6d 100644--- a/build-tools/ci-scripts/upload-nightly-packages.py+++ b/build-tools/ci-scripts/upload-nightly-packages.py@@ -11,14 +11,14 @@ supportedPlatforms = ['linux', 'windows', 'macos-universal', 'android-x86_64', '# Capture our command line parametersparser = argparse.ArgumentParser(description='A script for building Krita Windows package on CI')-parser.add_argument('--platform', type=str, choices=supportedPlatforms, required=True, help='The platform pacakge is built for')+parser.add_argument('--platform', type=str, choices=supportedPlatforms, required=True, help='The platform package is built for')parser.add_argument('--folder', type=str, required=True, help='The folder where to search for packages')arguments = parser.parse_args()skipUploadingNightlyPackages = os.environ.get('KRITACI_SKIP_UPLOAD_NIGHTLY_PACKAGE', 'False')if skipUploadingNightlyPackages.lower() in ['true', '1', 't', 'y', 'yes']:- print('## KRITACI_SKIP_UPLOAD_NIGHTLY_PACKAGE is set. Skiping uploading nightly packages...')+ print('## KRITACI_SKIP_UPLOAD_NIGHTLY_PACKAGE is set. Skipping uploading nightly packages...')sys.exit(0)if not 'KRITACI_PUBLISH_BUILD_CONFIG' in os.environ:diff --git a/libs/ui/KisApplication.cpp b/libs/ui/KisApplication.cppindex 22e45d52e7..c11701b558 100644--- a/libs/ui/KisApplication.cpp+++ b/libs/ui/KisApplication.cpp@@ -871,7 +871,7 @@ bool KisApplication::isStoreApplication()#ifdef Q_OS_WIN// This is also true for user-installed MSIX, but that's// likely only true in institutional situations, where- // we don't want to show the beggin banner either.+ // we don't want to show the beggining banner either.if (KisWindowsPackageUtils::isRunningInPackage()) {return true;}@@ -890,7 +890,7 @@ bool KisApplication::isStoreApplication()void KisApplication::verifyMetatypeRegistration(){/**- * Veryfy that all our statically registered types are actually registered.+ * Verify that all our statically registered types are actually registered.* This check is skipped in release builds, when HIDE_SAFE_ASSERTS is defined*/#if !defined(HIDE_SAFE_ASSERTS) || defined(CRASH_ON_SAFE_ASSERTS)diff --git a/libs/ui/KisDocument.cpp b/libs/ui/KisDocument.cppindex 23b427a1a4..f4b1aa57cd 100644--- a/libs/ui/KisDocument.cpp+++ b/libs/ui/KisDocument.cpp@@ -1331,8 +1331,8 @@ KritaUtils::BackgroudSavingStartResult KisDocument::initiateSavingInBackground(c}/**- * This lock will later release()'ed when we start he backgroud thread,- * it means that the ownership is transferred to the backgroud thread+ * This lock will later release() when we start the background thread,+ * it means that the ownership is transferred to the background thread*/std::unique_lock<QMutex> savingMutexLock(d->savingMutex, std::adopt_lock);@@ -1379,7 +1379,7 @@ KritaUtils::BackgroudSavingStartResult KisDocument::initiateSavingInBackground(c/*** From now on **no** return statements are allowed, even inside* asserts, since the ownership over the saving mutex has already- * been passed to the backgroud thread.+ * been passed to the background thread.** The cancellation process should go through* slotChildCompletedSavingInBackground(), which will unlock thediff --git a/libs/ui/KisDocument.h b/libs/ui/KisDocument.hindex 718a37f165..23cf7f63cf 100644--- a/libs/ui/KisDocument.h+++ b/libs/ui/KisDocument.h@@ -268,16 +268,16 @@ public:bool loadNativeFormat(const QString & file);/**- * allow to activate or deactivate autosave on document, independently of auto save delay+ * Allow to activate or deactivate autosave on document, independently of auto save delay*- * the value is independant of auto save delay+ * the value is independent of auto save delay*/void setAutoSaveActive(bool autoSaveIsActive);/**- * indicate if autosave is active or inactive+ * Indicate if autosave is active or inactive*- * the value is independant of auto save delay+ * the value is independent of auto save delay*/bool isAutoSaveActive();diff --git a/libs/ui/KisImportExportUtils.cpp b/libs/ui/KisImportExportUtils.cppindex 50a9a54bc3..49dd364880 100644--- a/libs/ui/KisImportExportUtils.cpp+++ b/libs/ui/KisImportExportUtils.cpp@@ -27,7 +27,7 @@ KisImportExportErrorCode workaroundUnsuitableImageColorSpace(KisImageSP image,const KoColorProfile *profile = colorSpace->profile();if (profile && !profile->isSuitableForOutput()) {- /// The profile has no reverse mapping into for the descriped color space,+ /// The profile has no reverse mapping into for the described color space,/// so we cannot use it in Krita. We need to ask the user to convert the image/// right on loadingdiff --git a/libs/ui/KisImportExportUtils.h b/libs/ui/KisImportExportUtils.hindex 52feefba0a..031a305e2c 100644--- a/libs/ui/KisImportExportUtils.h+++ b/libs/ui/KisImportExportUtils.h@@ -60,7 +60,7 @@ struct ExportFileJob {/*** When the image has a colorspace that is not suitable for displaying,- * Krita should convert that into something more useful. This tool funcion+ * Krita should convert that into something more useful. This tool function* asks the user about the desired working color space and converts into* it.*/diff --git a/libs/ui/KisMLTProducerKrita.cpp b/libs/ui/KisMLTProducerKrita.cppindex 27c8eb18d9..b5eabee4f4 100644--- a/libs/ui/KisMLTProducerKrita.cpp+++ b/libs/ui/KisMLTProducerKrita.cpp@@ -313,7 +313,7 @@ extern "C" void* producer_krita_init(mlt_profile profile,* Disable caching of frames in avformat producer** Caching in MLT library is broken. When a frame is taken from the- * cache its "audio" property is not resotred. It breaks the work+ * cache its "audio" property is not restored. It breaks the work* of "read-ahead" consumer thread, which also temporarily stores* this frame.*/diff --git a/libs/ui/KisPlaybackEngineMLT.cpp b/libs/ui/KisPlaybackEngineMLT.cppindex 5e69cd9890..2f4afce3c7 100644--- a/libs/ui/KisPlaybackEngineMLT.cpp+++ b/libs/ui/KisPlaybackEngineMLT.cpp@@ -106,7 +106,7 @@ struct FrameRenderingStats}/**- * This static funciton responds to MLT consumer requests for frames. This may+ * This static function responds to MLT consumer requests for frames. This may* continue to be called even when playback is stopped due to it running* simultaneously in a separate thread.*/diff --git a/libs/ui/KisPlaybackEngineQT.cpp b/libs/ui/KisPlaybackEngineQT.cppindex f0e029dab1..ad6d234ccd 100644--- a/libs/ui/KisPlaybackEngineQT.cpp+++ b/libs/ui/KisPlaybackEngineQT.cpp@@ -117,7 +117,7 @@ void PlaybackDriver::updatePlaybackLoopInterval(const int &in_fps, const qreal &// ======/** @brief Struct used to keep track of all frame time variance- * and acommodate for skipped frames. Also tracks whether a frame+ * and accommodate for skipped frames. Also tracks whether a frame* is still being loaded by the display proxy.** Only allocated when playback begins.diff --git a/libs/ui/KisViewManager.cpp b/libs/ui/KisViewManager.cppindex f717393a72..e0a45db756 100644--- a/libs/ui/KisViewManager.cpp+++ b/libs/ui/KisViewManager.cpp@@ -458,7 +458,7 @@ void KisViewManager::setCurrentView(KisView *view)if (imageView) {/// idle tasks managed should be reconnected to the new image the first,- /// because other dockers may request it to recalcualte stuff+ /// because other dockers may request it to recalculate stuffd->idleTasksManager.setImage(d->currentImageView->image());d->softProof->setChecked(imageView->softProofing());diff --git a/libs/ui/actions/kis_selection_action_factories.cpp b/libs/ui/actions/kis_selection_action_factories.cppindex bc4ea3d1c8..e6fa1029e2 100644--- a/libs/ui/actions/kis_selection_action_factories.cpp+++ b/libs/ui/actions/kis_selection_action_factories.cpp@@ -320,7 +320,7 @@ void KisCutCopyActionFactory::run(Flags flags, KisViewManager *view)// XXX: "Add saving of XML data for Cut/Copy of shapes"/**- * Make sure that we use tryBarrierLock() here becasue it does **not**+ * Make sure that we use tryBarrierLock() here because it does **not*** cause requestStrokeEnd() to be called in the tools, hence does not* prevent disruptions in the text tool.*/diff --git a/libs/ui/animation/KisAnimationRender.h b/libs/ui/animation/KisAnimationRender.hindex 0e9ecfb98a..086465ea5d 100644--- a/libs/ui/animation/KisAnimationRender.h+++ b/libs/ui/animation/KisAnimationRender.h@@ -16,7 +16,7 @@ class KisViewManager;namespace KisAnimationRender {/** Render an animation to file on disk.- * returns TRUE on success, FALSE on error or cancelation.+ * returns TRUE on success, FALSE on error or cancellation.**/KRITAUI_EXPORT bool render(KisDocument *doc, KisViewManager* viewManager, KisAnimationRenderingOptions encoderOptions);diff --git a/libs/ui/animation/VideoImportDialog.ui b/libs/ui/animation/VideoImportDialog.uiindex 98b83eb47e..64f1f631b0 100644--- a/libs/ui/animation/VideoImportDialog.ui+++ b/libs/ui/animation/VideoImportDialog.ui@@ -582,7 +582,7 @@ The higher the sensitivity, the more frames are added to Krita.</string><item row="2" column="0"><widget class="QLabel" name="videoScaleFilterLabel"><property name="text">- <string comment="Resize intepolation method list label">Filter:</string>+ <string comment="Resize interpolation method list label">Filter:</string></property><property name="alignment"><set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>diff --git a/libs/ui/animation/wdg_animationrenderer.ui b/libs/ui/animation/wdg_animationrenderer.uiindex 30763de1bf..278cb14e97 100644--- a/libs/ui/animation/wdg_animationrenderer.ui+++ b/libs/ui/animation/wdg_animationrenderer.ui@@ -185,7 +185,7 @@<item row="3" column="0"><widget class="QLabel" name="scaleFilterLabel"><property name="text">- <string comment="Resize intepolation method list label">Filter:</string>+ <string comment="Resize interpolation method list label">Filter:</string></property></widget></item>diff --git a/libs/ui/canvas/kis_canvas_decoration.h b/libs/ui/canvas/kis_canvas_decoration.hindex d22d2e558f..f566edce23 100644--- a/libs/ui/canvas/kis_canvas_decoration.h+++ b/libs/ui/canvas/kis_canvas_decoration.h@@ -87,7 +87,7 @@ protected:*/void setPriority(int value);- // returns the minimum decoration thickness, somewhat equivelant to the display scaling.+ // returns the minimum decoration thickness, somewhat equivalent to the display scaling.int decorationThickness() const;private:diff --git a/libs/ui/canvas/kis_coordinates_converter.cpp b/libs/ui/canvas/kis_coordinates_converter.cppindex 8182e23393..186f9fc752 100644--- a/libs/ui/canvas/kis_coordinates_converter.cpp+++ b/libs/ui/canvas/kis_coordinates_converter.cpp@@ -395,7 +395,7 @@ void KisCoordinatesConverter::setCanvasWidgetSizeKeepZoom(const QSizeF &size)} else {/*** WARNING: we can safely call setZoom() after changing widget size **only**- * for non-constant modes, becasue they have no still points, they always+ * for non-constant modes, because they have no still points, they always* align to the center of the widget. Constant mode, reads the state of the* canvas before transformation to calculate the position of the still point,* hence we cannot change the state separately.diff --git a/libs/ui/canvas/kis_coordinates_converter.h b/libs/ui/canvas/kis_coordinates_converter.hindex aa47a51643..30212a4387 100644--- a/libs/ui/canvas/kis_coordinates_converter.h+++ b/libs/ui/canvas/kis_coordinates_converter.h@@ -134,7 +134,7 @@ public:* to the passed points exactly! The still point may be offset by at most* (0.5 * sqrt(2) / devicePixelRatio()) due to hardware pixel alignment.*- * This alignement is the reason why we pass both document and view points+ * This alignment is the reason why we pass both document and view points* as a still point, because both values should be kept constant during iterative* zoom operations. Otherwise the canvas will drift to the side because of the* pixel alignmentl.@@ -248,7 +248,7 @@ public:/*** \brief Creates a still point that links the \p docPoint of the image- * (in document pixels!) to the curresponding point on the screen+ * (in document pixels!) to the corresponding point on the screen* (in the canvas widget).** The link is "baked" in KoViewTransformStillPoint object, hencediff --git a/libs/ui/canvas/kis_prescaled_projection.h b/libs/ui/canvas/kis_prescaled_projection.hindex 9e83b33000..6bba4d9629 100644--- a/libs/ui/canvas/kis_prescaled_projection.h+++ b/libs/ui/canvas/kis_prescaled_projection.h@@ -82,7 +82,7 @@ public Q_SLOTS:/*** Called whenever the size of the KisImage changes.* It is a part of a complex update ritual, when the size- * fo the image changes. This method just resizes the storage+ * of the image changes. This method just resizes the storage* for the image cache, it doesn't update any cached data.*/void slotImageSizeChanged(qint32 w, qint32 h);diff --git a/libs/ui/imagesize/dlg_canvassize.cc b/libs/ui/imagesize/dlg_canvassize.ccindex 1bcd76801a..9085a03ea4 100644--- a/libs/ui/imagesize/dlg_canvassize.cc+++ b/libs/ui/imagesize/dlg_canvassize.cc@@ -265,7 +265,7 @@ void DlgCanvasSize::slotAnchorButtonClicked(int id)void DlgCanvasSize::slotWidthChanged(double v){- //this slot receiv values in pt from the unitspinbox, so just use the resolution.+ //this slot receives values in pt from the unitspinbox, so just use the resolution.const double resValue = v*_widthUnitManager->getConversionFactor(KisSpinBoxUnitManager::LENGTH, "px");m_newWidth = qRound(resValue);@@ -286,7 +286,7 @@ void DlgCanvasSize::slotWidthChanged(double v)void DlgCanvasSize::slotHeightChanged(double v){- //this slot receiv values in pt from the unitspinbox, so just use the resolution.+ //this slot receives values in pt from the unitspinbox, so just use the resolution.const double resValue = v*_heightUnitManager->getConversionFactor(KisSpinBoxUnitManager::LENGTH, "px");m_newHeight = qRound(resValue);@@ -307,7 +307,7 @@ void DlgCanvasSize::slotHeightChanged(double v)void DlgCanvasSize::slotXOffsetChanged(double v){- //this slot receiv values in pt from the unitspinbox, so just use the resolution.+ //this slot receives values in pt from the unitspinbox, so just use the resolution.const double resValue = v*_xOffsetUnitManager->getConversionFactor(KisSpinBoxUnitManager::LENGTH, "px");m_xOffset = qRound(resValue);@@ -320,7 +320,7 @@ void DlgCanvasSize::slotXOffsetChanged(double v)void DlgCanvasSize::slotYOffsetChanged(double v){- //this slot receiv values in pt from the unitspinbox, so just use the resolution.+ //this slot receives values in pt from the unitspinbox, so just use the resolution.const double resValue = v*_xOffsetUnitManager->getConversionFactor(KisSpinBoxUnitManager::LENGTH, "px");m_yOffset = qRound(resValue);diff --git a/libs/ui/imagesize/dlg_layersize.cc b/libs/ui/imagesize/dlg_layersize.ccindex 40dada10ec..5dde87cc49 100644--- a/libs/ui/imagesize/dlg_layersize.cc+++ b/libs/ui/imagesize/dlg_layersize.cc@@ -161,7 +161,7 @@ KisFilterStrategy *DlgLayerSize::filterType()void DlgLayerSize::slotWidthChanged(double w){- //this slot receiv values in pt from the unitspinbox, so just use the resolution.+ //this slot receives values in pt from the unitspinbox, so just use the resolution.const double resValue = w*_widthUnitManager->getConversionFactor(KisSpinBoxUnitManager::LENGTH, "px");m_width = qRound(resValue);@@ -178,7 +178,7 @@ void DlgLayerSize::slotWidthChanged(double w)void DlgLayerSize::slotHeightChanged(double h){- //this slot receiv values in pt from the unitspinbox, so just use the resolution.+ //this slot receives values in pt from the unitspinbox, so just use the resolution.const double resValue = h*_heightUnitManager->getConversionFactor(KisSpinBoxUnitManager::LENGTH, "px");m_height = qRound(resValue);diff --git a/libs/ui/input/kis_single_action_shortcut.h b/libs/ui/input/kis_single_action_shortcut.hindex df720686b3..8f3d177bf9 100644--- a/libs/ui/input/kis_single_action_shortcut.h+++ b/libs/ui/input/kis_single_action_shortcut.h@@ -38,7 +38,7 @@ public:bool match(const QSet<Qt::Key> &modifiers, WheelAction wheelAction);/**- * Check is the shortcut or the key sequnce is a prefix of one another+ * Check is the shortcut or the key sequence is a prefix of one another*/bool conflictsWith(const QKeySequence &seq);diff --git a/libs/ui/kis_config.cc b/libs/ui/kis_config.ccindex 1ff055d626..ff73aaf2a9 100644--- a/libs/ui/kis_config.cc+++ b/libs/ui/kis_config.cc@@ -584,7 +584,7 @@ QString KisConfig::monitorProfile(int screen) const/*** Screen identifier may be empty (e.g. on macOS), so the identifier- * key will be plain 'monitorProfile', which is the key fot the **first**+ * key will be plain 'monitorProfile', which is the key for the **first*** display's profile, so we shouldn't fall into this trap...*/if (!screenIdentifier.isEmpty() && m_cfg.hasKey(screenIdentifierKey)) {diff --git a/libs/ui/kis_painting_assistant.cc b/libs/ui/kis_painting_assistant.ccindex 6d07e63398..6460dc5179 100644--- a/libs/ui/kis_painting_assistant.cc+++ b/libs/ui/kis_painting_assistant.cc@@ -187,9 +187,9 @@ KisPaintingAssistant::Private::Private(const Private &rhs)void KisPaintingAssistant::copySharedData(KisPaintingAssistantSP assistant){- /*Clones do not get a copy of the shared data, so this function is nessesary to copy- the SharedData struct from the old assistant to this one. The function returns a reference to- a new SharedData object copied from the original*/+ // Clones do not get a copy of the shared data, so this function is necessary to copy+ // the SharedData struct from the old assistant to this one. The function returns a+ // reference to a new SharedData object copied from the originalthis->d->s = (QSharedPointer<KisPaintingAssistant::Private::SharedData>)new KisPaintingAssistant::Private::SharedData;QSharedPointer<KisPaintingAssistant::Private::SharedData> sd = assistant->d->s;*this->d->s = *sd;diff --git a/libs/ui/kis_painting_assistant.h b/libs/ui/kis_painting_assistant.hindex 15529ab13c..c4be7b637c 100644--- a/libs/ui/kis_painting_assistant.h+++ b/libs/ui/kis_painting_assistant.h@@ -261,7 +261,7 @@ protected:QPointF pixelToView(const QPoint pixelCoords) const;/*** @brief Query the effective brush position to be used for preview lines.- * This is inteded to be used for painting the dynamic preview lines for assistants+ * This is intended to be used for painting the dynamic preview lines for assistants* that feature them. Affected by setAdjustedBrushPosition() and setFollowBrushPosition().* @return the effective brush (cursor) position in widget coordinates*/diff --git a/libs/ui/kis_painting_assistants_decoration.cpp b/libs/ui/kis_painting_assistants_decoration.cppindex a48ba29300..f912166527 100644--- a/libs/ui/kis_painting_assistants_decoration.cpp+++ b/libs/ui/kis_painting_assistants_decoration.cpp@@ -172,7 +172,7 @@ QPointF KisPaintingAssistantsDecoration::adjustPosition(const QPointF& point, coqreal secondSquareDistance = std::numeric_limits<qreal>::max();if (!d->snapOnlyOneAssistant || !d->firstAssistant) {- // In these cases the best assistant meeds to be determined.+ // In these cases the best assistant needs to be determined.int numSuitableAssistants = 0;KisPaintingAssistantSP bestAssistant;diff --git a/libs/ui/opengl/kis_texture_tile.cpp b/libs/ui/opengl/kis_texture_tile.cppindex 21612cce3e..972860bf7a 100644--- a/libs/ui/opengl/kis_texture_tile.cpp+++ b/libs/ui/opengl/kis_texture_tile.cpp@@ -186,7 +186,7 @@ void KisTextureTile::update(const KisTextureTileUpdateInfo &updateInfo, bool blo** Another case is when the user has Bilinear or* Nearest Neighbour filtering selected and tries to use LoD- * funcionality in animation. glTexSubImage2D() and textureLod()+ * functionality in animation. glTexSubImage2D() and textureLod()* are defined only when all the planes were explicitly initialized* with glTexImage2D(), which doesn't happen in case of bilinear- or* nn-filtering. In this case !m_mipmapHasBeenAllocated conditiondiff --git a/libs/ui/tests/kis_coordinates_converter_test.cpp b/libs/ui/tests/kis_coordinates_converter_test.cppindex 463bf171c4..b6a7960bda 100644--- a/libs/ui/tests/kis_coordinates_converter_test.cpp+++ b/libs/ui/tests/kis_coordinates_converter_test.cpp@@ -462,8 +462,8 @@ void KisCoordinatesConverterTest::testOffsetLimitsCropping()QCOMPARE(converter.imageToWidget(QPointF(1000,1000)), QPointF(500,500));// This mirror operation cause clipping of the offset, since- // the left edge of the document shoudl appear at position- // 480, which is higer than the limit of 450.+ // the left edge of the document should appear at position+ // 480, which is higher than the limit of 450.converter.mirror(converter.makeViewStillPoint(QPointF(490, 0)), true, false);QCOMPARE(converter.documentOffset(), QPoint(-450,0));@@ -585,7 +585,7 @@ void KisCoordinatesConverterTest::testZoomMode_data()<< unusedNewConstantZoom<< unusedWidgetStillPoint<< 2.0 * defaultDisplayResolution- << 0.35 // the only difference is that the percieved zoom is halved+ << 0.35 // the only difference is that the perceived zoom is halved<< PointPairs{{{0,0}, {0,-100}}, // the left image border is aligned to the left{{100,100}, {70,-30}},@@ -674,7 +674,7 @@ void KisCoordinatesConverterTest::testZoomMode_data()<< unusedNewConstantZoom<< unusedWidgetStillPoint<< 2.0 * defaultDisplayResolution- << 0.25 // the only difference is that the percieved zoom is halved+ << 0.25 // the only difference is that the perceived zoom is halved<< PointPairs{{{0,0}, {100,0}}, // the top image border is aligned to the top{{100,100}, {150,50}},@@ -763,7 +763,7 @@ void KisCoordinatesConverterTest::testZoomMode_data()<< unusedNewConstantZoom<< unusedWidgetStillPoint<< 2.0 * defaultDisplayResolution- << 0.25 // the only difference is that the percieved zoom is halved+ << 0.25 // the only difference is that the perceived zoom is halved<< PointPairs{{{0,0}, {100,0}}, // the top image border is aligned to the top{{100,100}, {150,50}},@@ -829,7 +829,7 @@ void KisCoordinatesConverterTest::testZoomMode_data()<< unusedNewConstantZoom<< unusedWidgetStillPoint<< 2.0 * defaultDisplayResolution- << 0.35 // the only difference is that the percieved zoom is halved+ << 0.35 // the only difference is that the perceived zoom is halved<< PointPairs{{{0,0}, {0,50}}, // the left image border is aligned to the left{{100,100}, {70,120}},diff --git a/libs/ui/tool/kis_tool_paint.cc b/libs/ui/tool/kis_tool_paint.ccindex e1000717a3..2054133880 100644--- a/libs/ui/tool/kis_tool_paint.cc+++ b/libs/ui/tool/kis_tool_paint.cc@@ -698,21 +698,21 @@ void KisToolPaint::requestUpdateOutline(const QPointF &outlineDocPoint, const Koif (!outlineDocRect.isEmpty()) {/*** A simple "update-ahead" implementation that issues an update a little- * bigger to accomodata the possible following outline.+ * bigger to accommodate the possible following outline.** The point is that canvas rendering comes through two stages of* compression and the canvas may request outline update when the* outline itself has already been changed. It causes visual tearing* on the screen (see https://bugs.kde.org/show_bug.cgi?id=476300).*- * We can solve that in two ways:+ * We can solve that in two ways:** 1) Pass the actual outline with the update rect itself, which is* a bit complicated and may result in the outline being a bit* delayed visually. We don't implement this method (yet).** 2) Just pass the update rect a bit bigger than the actual outline- * to accomodate a possible change in the outline. We calculate+ * to accommodate a possible change in the outline. We calculate* this bigger rect by offsetting the rect by the previous cursor* offset.*/diff --git a/libs/ui/tool/kis_tool_utils.h b/libs/ui/tool/kis_tool_utils.hindex 5c847dfa61..79f0abc1fd 100644--- a/libs/ui/tool/kis_tool_utils.h+++ b/libs/ui/tool/kis_tool_utils.h@@ -79,7 +79,7 @@ QPainterPath KRITAUI_EXPORT shapeHoverInfoCrossLayer(KoCanvasBase *canvas, const* @param canvas -- the current canvas.* @param point -- the point in document coordinates.* @param shapeType -- the required shapeId, if empty, selects any koshape.- * @return whether a shape was succesfully selected.+ * @return whether a shape was successfully selected.*/bool KRITAUI_EXPORT selectShapeCrossLayer(KoCanvasBase *canvas, const QPointF &point,const QString &shapeType = QString(), bool skipCurrentShapes = true);diff --git a/libs/ui/widgets/KisHistogramPainter.h b/libs/ui/widgets/KisHistogramPainter.hindex 6b8beb3eb3..35e2bc14c2 100644--- a/libs/ui/widgets/KisHistogramPainter.h+++ b/libs/ui/widgets/KisHistogramPainter.h@@ -139,7 +139,7 @@ public:* all the histogram, this can make its interesting parts too small to take* any valuable information from them. This function will try to come up* with a scale value that favors those interesting parts over the long- * peaks, which will be pushed and will look cutted+ * peaks, which will be pushed and will look cut* @see scale* @see setScale* @see setScaleToFitdiff --git a/libs/ui/widgets/KisHistogramView.h b/libs/ui/widgets/KisHistogramView.hindex 0dbc4273de..ac4bdbe493 100644--- a/libs/ui/widgets/KisHistogramView.h+++ b/libs/ui/widgets/KisHistogramView.h@@ -143,7 +143,7 @@ public Q_SLOTS:* histogram, this can make its interesting parts too small to take any* valuable information from them. This function will try to come up with a* scale value that favors those interesting parts over the long peaks,- * which will be pushed and will look cutted+ * which will be pushed and will look cut* @see scale* @see setScale* @see setScaleToFitdiff --git a/libs/ui/widgets/gradient/KisGenericGradientEditor.h b/libs/ui/widgets/gradient/KisGenericGradientEditor.hindex 849b8fe2bc..1fe165a82e 100644--- a/libs/ui/widgets/gradient/KisGenericGradientEditor.h+++ b/libs/ui/widgets/gradient/KisGenericGradientEditor.h@@ -53,7 +53,7 @@ public:* @brief Get the current gradient** A clone is returned so that any changes in the returned gradient- * won't change the editor gradient and viceversa+ * won't change the editor gradient and vice-versa* @return A clone of the current gradient* @see setGradient(KoAbstractGradientSP)*/@@ -132,7 +132,7 @@ public Q_SLOTS:* @brief Set the gradient** This editor makes a clone os the gradient passed so that any changes- * made in the editor won't change the passed gradient and viceversa+ * made in the editor won't change the passed gradient and vice-versa* @param newGradient The new gradient* @see gradient()*/diff --git a/libs/ui/widgets/kis_scratch_pad.cpp b/libs/ui/widgets/kis_scratch_pad.cppindex ffaa9efa1d..3d0551538a 100644--- a/libs/ui/widgets/kis_scratch_pad.cpp+++ b/libs/ui/widgets/kis_scratch_pad.cpp@@ -263,8 +263,8 @@ void KisScratchPad::wheelDelta(QWheelEvent *event)// matching cursor position in document (taking in account scale + translate)QPointF docPosition = widgetToDocument().map(position);- // loop manage case where angleDelta is greated than one mouse wheel tick and allows to refresh zoom smoothly- // in this case+ // loop manage case where angleDelta is greater than one mouse wheel tick+ // and allows to refresh zoom smoothly in this case// if angleDelta = 360, 360/120 = 3, then scale will be refreshed 3 times// m_accumulatedMouseDelta allow to manage the case where angleDelta in not equal QWheelEvent::DefaultDeltasPerStepwhile (qAbs(m_accumulatedMouseDelta) >= QWheelEvent::DefaultDeltasPerStep) {@@ -461,7 +461,7 @@ void KisScratchPad::setOnScreenResolution(qreal scaleX, qreal scaleY)// linked to it//// Otherwise do nothing- // If zoom on scratchPad have to be updated, then it have to be udpated manually through setScale() method+ // If zoom on scratchPad has to be updated, then it has to be updated manually through setScale() method// value not changed? do nothingif (qFuzzyCompare(scaleX, m_canvasScaleX) && qFuzzyCompare(scaleY, m_canvasScaleY)) return;diff --git a/libs/ui/widgets/kis_workspace_chooser.cpp b/libs/ui/widgets/kis_workspace_chooser.cppindex 6fd659da9f..dec6281a26 100644--- a/libs/ui/widgets/kis_workspace_chooser.cpp+++ b/libs/ui/widgets/kis_workspace_chooser.cpp@@ -288,7 +288,7 @@ void KisWorkspaceChooser::windowLayoutSelected(KoResourceSP resource)layout->applyLayout();}-// WORKAROUND: setting the row height of the resource chooser get's overriden somehow+// WORKAROUND: setting the row height of the resource chooser gets overridden somehow// so set it again herevoid KisWorkspaceChooser::showEvent(QShowEvent* event){diff --git a/packaging/linux/appimage/build-image.sh b/packaging/linux/appimage/build-image.shindex 1e0d391899..602931146e 100755--- a/packaging/linux/appimage/build-image.sh+++ b/packaging/linux/appimage/build-image.sh@@ -38,7 +38,7 @@ export PYTHONPATH=$DEPS_INSTALL_PREFIX/sipfiexport PYTHONHOME=$DEPS_INSTALL_PREFIX-# add our own linuxdeployqt to our PATH environemnt if available+# add our own linuxdeployqt to our PATH environment if availableif [ -d $DEPS_INSTALL_PREFIX/appimage-tools/bin ]; thenexport PATH=$DEPS_INSTALL_PREFIX/appimage-tools/bin/:$PATHfidiff --git a/packaging/macos/macstoreprep.sh b/packaging/macos/macstoreprep.shindex 0293c2d574..8148530ae7 100755--- a/packaging/macos/macstoreprep.sh+++ b/packaging/macos/macstoreprep.sh@@ -19,7 +19,7 @@ if [[ -z $BUILDROOT ]]; thenexit 1fi-#recieves a path without filename+# receives a path without filenameget_absolute_path() {local origLoc="$(pwd)"diff --git a/packaging/macos/osxdeploy.sh b/packaging/macos/osxdeploy.shindex 09594def4f..c8f31e7c66 100755--- a/packaging/macos/osxdeploy.sh+++ b/packaging/macos/osxdeploy.sh@@ -508,7 +508,7 @@ krita_create_PyKrita() {local fmwk_name="PyKrita"local fmwk_version=${KRITA_VERSION%%-*}- # asume we are not in frameworks+ # assume we are not in frameworkslocal old_pwd=$(pwd)cd ${KRITA_DMG}/krita.app/Contents/Frameworks/diff --git a/qmlmodules/components/qml/InformingTextInput.qml b/qmlmodules/components/qml/InformingTextInput.qmlindex f1b041da14..53aacf413d 100644--- a/qmlmodules/components/qml/InformingTextInput.qml+++ b/qmlmodules/components/qml/InformingTextInput.qml@@ -30,7 +30,7 @@ import "overlays"/// Assume this does something more useful than check/// if text is literally the string "Valid".- funcion validate(text) {+ function validate(text) {text == "Valid";}}diff --git a/qmlmodules/components/qml/overlays/SliderOverlay.qml b/qmlmodules/components/qml/overlays/SliderOverlay.qmlindex 4ca17f2576..461a1a892b 100644--- a/qmlmodules/components/qml/overlays/SliderOverlay.qml+++ b/qmlmodules/components/qml/overlays/SliderOverlay.qml@@ -9,7 +9,7 @@ import QtQuick 2.15\qmltype SliderOverlayThis item is an overlay that draws the slider in slider spinboxes.- It can show two seperate bars. Each can have a separate width, however+ It can show two separate bars. Each can have a separate width, howeveronly one can be active. This bar will be shown wider than the inactive bar.*/Item {diff --git a/qmlmodules/components/qml/spinbox/ParseSpinBoxContentItem.qml b/qmlmodules/components/qml/spinbox/ParseSpinBoxContentItem.qmlindex 31d9272878..d0554ba305 100644--- a/qmlmodules/components/qml/spinbox/ParseSpinBoxContentItem.qml+++ b/qmlmodules/components/qml/spinbox/ParseSpinBoxContentItem.qml@@ -13,7 +13,7 @@ import org.krita.components 1.0/*\qmltype ParseSpinBoxContentItemA FocusScope that allows for parsing math expressions via KisNumParser,- in addtion to allowing for suffix and prefix.+ in addition to allowing for suffix and prefix.When the math expression is incorrect, a WarningOverlay will be drawn.