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 9f7218ac75
commit 0b3adee2ab
58 changed files with 573 additions and 592 deletions

View File

@@ -180,10 +180,10 @@ void EditableDatumLabel::stopEdit()
Base::Quantity quantity = spinBox->value();
double factor{};
QString unitStr;
QString valueStr;
std::string unitStr;
std::string valueStr;
valueStr = quantity.getUserString(factor, unitStr);
label->string = SbString(valueStr.toUtf8().constData());
label->string = SbString(valueStr.c_str());
spinBox->deleteLater();
spinBox = nullptr;