Base: Quantity: return std::string

This commit is contained in:
Ladislav Michl
2024-07-13 13:07:27 +02:00
committed by Yorik van Havre
parent c11b37e312
commit 2ea8a633ac
58 changed files with 573 additions and 592 deletions

View File

@@ -534,10 +534,10 @@ void InteractiveScale::setDistance(const SbVec3f& pos3d)
// Update the displayed distance
double factor {};
QString unitStr;
QString valueStr;
std::string unitStr;
std::string valueStr;
valueStr = quantity.getUserString(factor, unitStr);
measureLabel->label->string = SbString(valueStr.toUtf8().constData());
measureLabel->label->string = SbString(valueStr.c_str());
measureLabel->label->setPoints(getCoordsOnImagePlane(points[0]), getCoordsOnImagePlane(pos3d));
}