From e987d8c2714e2feda3a4352cb9b32916f8c434f0 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Fri, 28 Feb 2025 20:25:31 +0100 Subject: [PATCH] fix typo in variable-name --- sources/qetgraphicsitem/conductor.cpp | 28 +++++++++++++-------------- sources/qetgraphicsitem/conductor.h | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/sources/qetgraphicsitem/conductor.cpp b/sources/qetgraphicsitem/conductor.cpp index 445b972bd..5393efc1d 100644 --- a/sources/qetgraphicsitem/conductor.cpp +++ b/sources/qetgraphicsitem/conductor.cpp @@ -1339,17 +1339,17 @@ void Conductor::calculateTextItemPosition() relatedPotentialConductors(false).size() > 0) { - Conductor *longuest_conductor = longuestConductorInPotential(this); + Conductor *longest_conductor = longestConductorInPotential(this); - //The longuest conductor isn't this conductor - //we call calculateTextItemPosition of the longuest conductor - if(longuest_conductor != this) + //The longest conductor isn't this conductor + //we call calculateTextItemPosition of the longest conductor + if(longest_conductor != this) { - longuest_conductor -> calculateTextItemPosition(); + longest_conductor -> calculateTextItemPosition(); return; } - //At this point this conductor is the longuest conductor we hide all text of conductor_list + //At this point this conductor is the longest conductor we hide all text of conductor_list foreach (Conductor *c, relatedPotentialConductors(false)) { c -> textItem() -> setVisible(false); } @@ -2072,19 +2072,19 @@ QPointF Conductor::movePointIntoPolygon(const QPointF &point, const QPainterPath } /** - @brief longuestConductorInPotential + @brief longestConductorInPotential @param conductor : a conductor in the potential to search @param all_diagram : true -> search in the whole project, false -> search only in the diagram of conductor - @return the longuest conductor in the same potential of conductor + @return the longest conductor in the same potential of conductor */ -Conductor * longuestConductorInPotential(Conductor *conductor, bool all_diagram) { - Conductor *longuest_conductor = conductor; - //Search the longuest conductor +Conductor * longestConductorInPotential(Conductor *conductor, bool all_diagram) { + Conductor *longest_conductor = conductor; + //Search the longest conductor foreach (Conductor *c, conductor -> relatedPotentialConductors(all_diagram)) - if (c -> length() > longuest_conductor -> length()) - longuest_conductor = c; + if (c -> length() > longest_conductor -> length()) + longest_conductor = c; - return longuest_conductor; + return longest_conductor; } /** diff --git a/sources/qetgraphicsitem/conductor.h b/sources/qetgraphicsitem/conductor.h index 5e862df6d..430181630 100644 --- a/sources/qetgraphicsitem/conductor.h +++ b/sources/qetgraphicsitem/conductor.h @@ -232,7 +232,7 @@ class Conductor : public QGraphicsObject static QPointF movePointIntoPolygon(const QPointF &, const QPainterPath &); }; -Conductor * longuestConductorInPotential (Conductor *conductor, bool all_diagram = false); +Conductor * longestConductorInPotential (Conductor *conductor, bool all_diagram = false); QList relatedConductors (const Conductor *conductor);