Internationalize coordinates format in status line
--HG-- branch : develop
This commit is contained in:
parent
54b3f642f3
commit
0dc78c818c
|
@ -1373,9 +1373,10 @@ void MainWindow::currentPPChanged(int index)
|
||||||
*/
|
*/
|
||||||
void MainWindow::mouseMove(const QPointF &scenePos)
|
void MainWindow::mouseMove(const QPointF &scenePos)
|
||||||
{
|
{
|
||||||
QString string = QString("%1, %2 (%3)").arg(static_cast<qint32>(qApp->fromPixel(scenePos.x())))
|
//: Coords in status line: "X, Y (units)"
|
||||||
|
QString string = QString(tr("%1, %2 (%3)")).arg(static_cast<qint32>(qApp->fromPixel(scenePos.x())))
|
||||||
.arg(static_cast<qint32>(qApp->fromPixel(scenePos.y())))
|
.arg(static_cast<qint32>(qApp->fromPixel(scenePos.y())))
|
||||||
.arg(doc->UnitsToStr(qApp->patternUnit()));
|
.arg(doc->UnitsToStr(qApp->patternUnit(), true));
|
||||||
if (mouseCoordinate != nullptr)
|
if (mouseCoordinate != nullptr)
|
||||||
{
|
{
|
||||||
mouseCoordinate->setText(string);
|
mouseCoordinate->setText(string);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user