Base: Quantity: return std::string
This commit is contained in:
committed by
Yorik van Havre
parent
c11b37e312
commit
2ea8a633ac
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user