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

@@ -327,7 +327,7 @@ void TDragger::drag()
Base::Unit::Length);
QString message =
QString::fromLatin1("%1 %2").arg(QObject::tr("Translation:"), quantity.getUserString());
QString::fromLatin1("%1 %2").arg(QObject::tr("Translation:"), QString::fromStdString(quantity.getUserString()));
getMainWindow()->showMessage(message, 3000);
}
@@ -614,8 +614,8 @@ void TPlanarDragger::drag()
QString message = QString::fromLatin1("%1 %2, %3")
.arg(QObject::tr("Translation XY:"),
quantityX.getUserString(),
quantityY.getUserString());
QString::fromStdString(quantityX.getUserString()),
QString::fromStdString(quantityY.getUserString()));
getMainWindow()->showMessage(message, 3000);
}
@@ -940,7 +940,7 @@ void RDragger::drag()
Base::Unit::Angle);
QString message =
QString::fromLatin1("%1 %2").arg(QObject::tr("Rotation:"), quantity.getUserString());
QString::fromLatin1("%1 %2").arg(QObject::tr("Rotation:"), QString::fromStdString(quantity.getUserString()));
getMainWindow()->showMessage(message, 3000);
}