TechDraw: [skip ci] convert source files from iso-8859 to utf-8

All other source files are either plain ascii or utf-8, this converts
the last few to utf-8.
This commit is contained in:
Benjamin Nauck
2021-03-22 21:47:57 +01:00
committed by wwmayer
parent a026c9d3d4
commit d358e13cd6
8 changed files with 9 additions and 9 deletions

View File

@@ -792,7 +792,7 @@ std::string DrawViewDimension::formatValue(qreal value, QString qFormatSpec, int
}
// qUserString is the value + unit with default decimals, so extract the unit
// we cannot just use unit.getString() because this would convert '°' to 'deg'
// we cannot just use unit.getString() because this would convert '°' to 'deg'
QRegExp rxUnits(QString::fromUtf8(" \\D*$")); // space + any non digits at end of string
int pos = 0;
if ((pos = rxUnits.indexIn(qUserString, 0)) != -1) {
@@ -948,7 +948,7 @@ std::string DrawViewDimension::getFormattedDimensionValue(int partial)
if ((Type.isValue("Angle")) || (Type.isValue("Angle3Pt"))) {
result = labelText + unitText + QString::fromUtf8(" \xC2\xB1 ") + tolerance;
} else {
// add the tolerance to the dimension using the ± sign
// add the tolerance to the dimension using the ± sign
result = labelText + QString::fromUtf8(" \xC2\xB1 ") + tolerance;
}
if (partial == 2) {