From faef0c6f27b3658dc18c5c69ee91ba25047a357c Mon Sep 17 00:00:00 2001 From: luzpaz Date: Thu, 30 Nov 2023 12:51:10 +0000 Subject: [PATCH] Fix various typos --- src/Gui/ApplicationPy.cpp | 2 +- src/Gui/CommandDoc.cpp | 2 +- src/Mod/AddonManager/NetworkManager.py | 2 +- src/Mod/PartDesign/App/ShapeBinder.cpp | 2 +- src/Mod/TechDraw/Gui/QGIRichAnno.cpp | 2 +- src/Mod/TechDraw/Gui/TaskRichAnno.cpp | 2 +- tests/src/Gui/QuantitySpinBox.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Gui/ApplicationPy.cpp b/src/Gui/ApplicationPy.cpp index bcb4437d18..f49ac86d8a 100644 --- a/src/Gui/ApplicationPy.cpp +++ b/src/Gui/ApplicationPy.cpp @@ -547,7 +547,7 @@ PyObject* Application::sGetDocument(PyObject * /*self*/, PyObject *args) return pcDoc->getPyObject(); } - PyErr_SetString(PyExc_TypeError, "Either string or App.Document exprected"); + PyErr_SetString(PyExc_TypeError, "Either string or App.Document expected"); return nullptr; } diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index cce02a49f7..2d99fccf11 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -1286,7 +1286,7 @@ StdCmdSelectAll::StdCmdSelectAll() sWhatsThis = "Std_SelectAll"; sStatusTip = QT_TR_NOOP("Select all"); sPixmap = "edit-select-all"; - //sAccel = "Ctrl+A"; // superseeds shortcuts for text edits + //sAccel = "Ctrl+A"; // supersedes shortcuts for text edits } void StdCmdSelectAll::activated(int iMsg) diff --git a/src/Mod/AddonManager/NetworkManager.py b/src/Mod/AddonManager/NetworkManager.py index c869f73d64..8c7a475512 100644 --- a/src/Mod/AddonManager/NetworkManager.py +++ b/src/Mod/AddonManager/NetworkManager.py @@ -174,7 +174,7 @@ if HAVE_QTNETWORK: def _setup_proxy(self): """Set up the proxy based on user preferences or prompts on command line""" - # Set up the proxy, if necesssary: + # Set up the proxy, if necessary: if HAVE_FREECAD: ( noProxyCheck, diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index 1339f3650b..b1473a6bcd 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -891,7 +891,7 @@ void SubShapeBinder::checkPropertyStatus() { // Make Shape transient can reduce some file size, and maybe reduce file // loading time as well. But there maybe complication arise when doing - // TopoShape version upgrade. So we DO NOT set trasient at the moment. + // TopoShape version upgrade. So we DO NOT set transient at the moment. // // Shape.setStatus(App::Property::Transient, !PartialLoad.getValue() && BindMode.getValue()==0); } diff --git a/src/Mod/TechDraw/Gui/QGIRichAnno.cpp b/src/Mod/TechDraw/Gui/QGIRichAnno.cpp index 01ca2965ef..77c698f286 100644 --- a/src/Mod/TechDraw/Gui/QGIRichAnno.cpp +++ b/src/Mod/TechDraw/Gui/QGIRichAnno.cpp @@ -243,7 +243,7 @@ QString QGIRichAnno::convertTextSizes(const QString& inHtml) const QStringList findList; QStringList replList; - // find each occurence of "font-size:..." and calculate the equivalent size in scene units + // find each occurrence of "font-size:..." and calculate the equivalent size in scene units // or CSS pixels int pos = 0; while ((pos = inHtml.indexOf(rxFontSize, pos, &match)) != -1) { diff --git a/src/Mod/TechDraw/Gui/TaskRichAnno.cpp b/src/Mod/TechDraw/Gui/TaskRichAnno.cpp index d1f5d752d7..73ea6e48e3 100644 --- a/src/Mod/TechDraw/Gui/TaskRichAnno.cpp +++ b/src/Mod/TechDraw/Gui/TaskRichAnno.cpp @@ -310,7 +310,7 @@ void TaskRichAnno::createAnnoFeature() m_annoFeat->X.setValue(Rez::appX(vTemp.x)); m_annoFeat->Y.setValue(Rez::appX(vTemp.y)); } else { - //if we don't have a base featrue, we can't calculate start position, so just put it mid-page + //if we don't have a base feature, we can't calculate start position, so just put it mid-page m_annoFeat->X.setValue(m_basePage->getPageWidth()/2.0); m_annoFeat->Y.setValue(m_basePage->getPageHeight()/2.0); } diff --git a/tests/src/Gui/QuantitySpinBox.cpp b/tests/src/Gui/QuantitySpinBox.cpp index 4e12f731e7..b1af5a5a3f 100644 --- a/tests/src/Gui/QuantitySpinBox.cpp +++ b/tests/src/Gui/QuantitySpinBox.cpp @@ -59,7 +59,7 @@ private Q_SLOTS: auto val1 = qsb->value(); QCOMPARE(val1.getFormat().precision, 7); - // format shoudn't change after setting a double + // format shouldn't change after setting a double qsb->setValue(3.5); auto val2 = qsb->value(); QCOMPARE(val2.getFormat().precision, 7);