mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 01:04:13 +02:00
Keep longestConductorInPotential's doc comment on the function
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user