clang-format: Set column width to 140

* Set column width to 140
* Use c++20
* Remove redundant virtual
This commit is contained in:
Magne Sjaastad
2023-02-26 10:48:40 +01:00
parent 2bf3a511fe
commit 42b901ec28
1535 changed files with 10456 additions and 19398 deletions

View File

@@ -133,21 +133,15 @@ QString RimMeasurement::label() const
if ( m_pointsInDomainCoords.size() > 2 )
{
text = QString( "Segment Length: %1\nSegment Horizontal Length: %2\n" )
.arg( lengths.lastSegmentLength )
.arg( lengths.lastSegmentHorisontalLength );
text = QString( "Segment Length: %1\nSegment Horizontal Length: %2\n" ).arg( lengths.lastSegmentLength ).arg( lengths.lastSegmentHorisontalLength );
text += QString( "Total Length: %1\nTotal Horizontal Length: %2\n" )
.arg( lengths.totalLength )
.arg( lengths.totalHorizontalLength );
text += QString( "Total Length: %1\nTotal Horizontal Length: %2\n" ).arg( lengths.totalLength ).arg( lengths.totalHorizontalLength );
text += QString( "\nHorizontal Area : %1" ).arg( lengths.area );
}
else
{
text = QString( "Length: %1\nHorizontal Length: %2\n" )
.arg( lengths.lastSegmentLength )
.arg( lengths.lastSegmentHorisontalLength );
text = QString( "Length: %1\nHorizontal Length: %2\n" ).arg( lengths.lastSegmentLength ).arg( lengths.lastSegmentHorisontalLength );
}
return text;