From 371ea881e515fb18d538db8e71cb4db4733e81ab Mon Sep 17 00:00:00 2001 From: ispyisail Date: Fri, 2 Oct 2026 23:08:32 +1300 Subject: [PATCH] Keep longestConductorInPotential's doc comment on the function Co-Authored-By: Claude Opus 5.5 (1M context) --- sources/qetgraphicsitem/conductor.cpp | 12 ++++++------ tests/qttest/tst_potentialtextcarrier.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sources/qetgraphicsitem/conductor.cpp b/sources/qetgraphicsitem/conductor.cpp index 0d2faa2f2..5c6daa74a 100644 --- a/sources/qetgraphicsitem/conductor.cpp +++ b/sources/qetgraphicsitem/conductor.cpp @@ -2305,12 +2305,6 @@ QPointF Conductor::movePointIntoPolygon(const QPointF &point, const QPainterPath } } -/** - @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 longest conductor in the same potential of conductor -*/ namespace { /// The two ends of @p conductor on the folio, smaller first, compared /// by x then y. @@ -2343,6 +2337,12 @@ namespace { } } +/** + @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 longest conductor in the same potential of conductor +*/ Conductor * longestConductorInPotential(Conductor *conductor, bool all_diagram) { Conductor *longest_conductor = conductor; qreal longest_length = conductor->length(); diff --git a/tests/qttest/tst_potentialtextcarrier.cpp b/tests/qttest/tst_potentialtextcarrier.cpp index 559ef0ce0..97d8c28d2 100644 --- a/tests/qttest/tst_potentialtextcarrier.cpp +++ b/tests/qttest/tst_potentialtextcarrier.cpp @@ -66,8 +66,8 @@ private slots: QVERIFY(QFile::exists(QStringLiteral(QET_TEST_BINARY_PATH))); } - // Before the fix about half the runs differed from the first, so - // eight agreeing runs leave a 1 in 128 chance of a false pass. + // Before the fix about half the runs differed from the first, so + // eight agreeing runs leave a 1 in 128 chance of a false pass. void sameCarrierEveryRun() { const QString first = carrier(0);